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

add execute msg to update minter #729

Merged
merged 3 commits into from
Jun 24, 2022

Conversation

blue-note
Copy link
Contributor

Allows current minter to update minter. Cap cannot be updated.

@CLAassistant
Copy link

CLAassistant commented May 30, 2022

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@orkunkl orkunkl left a comment

Choose a reason for hiding this comment

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

Thanks!

@JakeHartnell
Copy link
Collaborator

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)?;
Copy link
Contributor

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.

packages/cw20/src/msg.rs Show resolved Hide resolved
@maurolacy maurolacy requested a review from ethanfrey June 24, 2022 07:16
Copy link
Member

@ethanfrey ethanfrey left a 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

contracts/cw20-base/src/contract.rs Show resolved Hide resolved
contracts/cw20-base/src/contract.rs Show resolved Hide resolved
contracts/cw20-base/src/contract.rs Show resolved Hide resolved
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.

6 participants