From ee0e73be94d2380724657f843ac7aec1fc334382 Mon Sep 17 00:00:00 2001 From: s2quake Date: Thu, 5 Dec 2024 10:55:08 +0900 Subject: [PATCH] fix: Change validatorPower type from BigInt to string --- tools/Libplanet.Explorer/GraphTypes/VoteType.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/Libplanet.Explorer/GraphTypes/VoteType.cs b/tools/Libplanet.Explorer/GraphTypes/VoteType.cs index 2171c4717c6..9fc37788b7f 100644 --- a/tools/Libplanet.Explorer/GraphTypes/VoteType.cs +++ b/tools/Libplanet.Explorer/GraphTypes/VoteType.cs @@ -30,10 +30,10 @@ public VoteType() "ValidatorPublicKey", description: "Public key of the validator which is subject of the vote.", resolve: ctx => ctx.Source.ValidatorPublicKey); - Field( + Field( "ValidatorPower", description: "Power of the validator which is subject of the vote.", - resolve: ctx => ctx.Source.ValidatorPower); + resolve: ctx => ctx.Source.ValidatorPower?.ToString("N0")); Field>( "Flag", description: "Flag of the vote",