Skip to content
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

Merged
merged 3 commits into from
Dec 14, 2023

Conversation

NoahSaso
Copy link
Member

Currently, setting up the dao-pre-propose-approver contract is a one-way operation. Once the dao-pre-propose-approval-single's approver 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 the update_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.

Copy link

codecov bot commented Nov 17, 2023

Codecov Report

Attention: 36 lines in your changes are missing coverage. Please review.

Comparison is base (1187dba) 96.32% compared to head (2a219e9) 96.25%.

Files Patch % Lines
...e-propose/dao-pre-propose-approver/src/contract.rs 0.00% 35 Missing ⚠️
...ts/pre-propose/dao-pre-propose-approver/src/msg.rs 0.00% 1 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

@NoahSaso NoahSaso marked this pull request as ready for review November 27, 2023 23:44
Copy link

codecov bot commented Nov 27, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (a3a72db) 96.45% compared to head (5ab004f) 96.50%.

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.
📢 Have feedback on the report? Share it here.

Copy link
Member

@JakeHartnell JakeHartnell left a 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!

@NoahSaso NoahSaso requested a review from bekauz December 14, 2023 21:41
Copy link
Collaborator

@bekauz bekauz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good!

@NoahSaso NoahSaso merged commit a3f15d7 into development Dec 14, 2023
9 checks passed
@NoahSaso NoahSaso deleted the noah/add-approver-reset branch December 14, 2023 23:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants