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

cw721-non-transferable: cannot mint #123

Open
peterblockman opened this issue May 5, 2023 · 0 comments
Open

cw721-non-transferable: cannot mint #123

peterblockman opened this issue May 5, 2023 · 0 comments

Comments

@peterblockman
Copy link

peterblockman commented May 5, 2023

I am trying to implement the cw721-non-transferable into my project, however, I am currently facing issues with the minting process

If the sender is the admin, we will reach the _execute(deps, env, info, msg) function, which will execute the cw721-base's mint function. However, the mint function will throw an error due to this line of code: cw_ownable::assert_owner(deps.storage, &info.sender)?; which requires the sender to be the minter.

If the sender is the minter, the match arm will throw a NotOwner error.

It only works if the admin and minter are the same.

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

No branches or pull requests

1 participant