Skip to content

Commit

Permalink
fix: Change validatorPower type from BigInt to string
Browse files Browse the repository at this point in the history
  • Loading branch information
s2quake committed Dec 5, 2024
1 parent 7513c9b commit ee0e73b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/Libplanet.Explorer/GraphTypes/VoteType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<BigIntGraphType>(
Field<StringGraphType>(
"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<NonNullGraphType<VoteFlagType>>(
"Flag",
description: "Flag of the vote",
Expand Down

0 comments on commit ee0e73b

Please sign in to comment.