Open Hecate2 opened 3 years ago
Then we need another method in BurgerNeoGovernanceToken to check the voting result of proposals and execute the proposal? Otherwise nobody can call the methods in BurgerNeoGovernanceToken
Then we need another method in BurgerNeoGovernanceToken to check the voting result of proposals and execute the proposal
i think so
The method CountVote
has been preliminarily tested, where the iterator works well. ExecuteProposal
can reuse CountVote
, but may cost more GAS.
Ready for further complete tests
Stored proposal attributes as structs in commit https://github.com/neoburger/code/pull/3/commits/f17807cf820630450f3a784331d27d43d8e5086b. Unit-tested.
readonly method can be placed above like below in
BurgerNEO.cs