-
Notifications
You must be signed in to change notification settings - Fork 355
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
add execute msg to update minter #729
Conversation
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.
Thanks!
fcb843c
to
0a6546b
Compare
Any updates on this? We would really like to have it for DAO migrations. |
return Err(ContractError::Unauthorized {}); | ||
} | ||
|
||
let minter = deps.api.addr_validate(&new_minter)?; |
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.
Nit: You can move this validation before loading the config, to save some cycles in case of error.
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.
good stuff.
just some minor nits
Allows current minter to update minter. Cap cannot be updated.