-
Notifications
You must be signed in to change notification settings - Fork 142
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
Added message to reset approver back to DAO #774
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## development #774 +/- ##
===============================================
- Coverage 96.32% 96.25% -0.07%
===============================================
Files 203 203
Lines 50186 50222 +36
===============================================
Hits 48341 48341
- Misses 1845 1881 +36 ☔ View full report in Codecov by Sentry. |
2a219e9
to
1f578a6
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## development #774 +/- ##
===============================================
+ Coverage 96.45% 96.50% +0.04%
===============================================
Files 204 204
Lines 52395 52518 +123
===============================================
+ Hits 50537 50680 +143
+ Misses 1858 1838 -20 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two small notes on to_binary
being depricated. You may want to rebase to fix the other linting errors as well. Otherwise, GREAT CATCH!
1f578a6
to
f4dd793
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good!
Currently, setting up the
dao-pre-propose-approver
contract is a one-way operation. Once thedao-pre-propose-approval-single
'sapprover
is set to the approver contract, there is no way to reset it back to the DAO. This is because the approval-single contract requires the current approver to be the one calling theupdate_approver
execute message.This PR adds a message to the approver contract to undo its setup, setting the approver back to the DAO and unregistering the proposal completed hook.