Skip to content

Using "vote()" on the Election.sol Celo Smart Contract #1913

Closed Answered by gastonponti
douglasqian asked this question in Help (Q&A)
Discussion options

You must be logged in to vote

As you find out, the idea between the lesser and greater is to avoid that computation in the contract and basically make that call cheaper (gas/computation)

The validatorgroup:list shows every validatorgroup in existence, but the eligible, shows only the ones that have at least 1 validator.

For what I'm checking right now, this address 0xEba452a3fACad973d03DAab5ca158C286c59A540 is part of the response of the getTotalVotesForEligibleValidatorGroups call for baklava. Just a guess, but maybe when you queried that method, the group didn't have any validator.

Let me know if your issue persist.

For the way to calculate the lesser and greater, you can check what we are doing in the contractKit (…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@douglasqian
Comment options

Answer selected by douglasqian
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants