-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proposals cannot be executed based on quorum after voting period over #14
Comments
yes, tests first and a failing CI run before the fix. 💯 |
Here's a test case to better illustrate this:
|
Bonus points: move the logic around checking/updating statuses in |
Some of the Maybe we could have a generic This whole issue of extensibility is a bit tricky for me. Whether subclassing, or decorators, or other meta-programming tricks. I find it a bit tricky to extend other code in many places. |
Closed by #18 |
Proposals can pass early or after the voting period is over. If a proposal doesn't pass early, but after the voting period is over, it will still be
Status::Open
internally andexecute_execute
will error.This affects
tgrade-community-pool
,tgrade-validator-voting
,oc-proposals
andcw3-flex-multisig
.The simplest solution is to do something like Ethan's suggestion in #12 - use
.current_status()
rather than directly comparing the.status
field.More importantly, we need tests for this situation.
The text was updated successfully, but these errors were encountered: