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.
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.