You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 theminter
.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.
The text was updated successfully, but these errors were encountered: