Closed zk1tty closed 9 months ago
Minter role should be managed in vercel. How you will manage on chain condition using off chain data? And how the role giving process will occur
@zkitty-norika check the new contract. Note that, in order to enable user minting function, you have to grant them that role now
Hi @toufique-imam,
Maybe I got confused.
Who calls mintNFTInCoin
function? A user, correct?
Then User can call directly. No need to input MINTER_ROLE
. Sorry, that's my confusion.
Okay I will revert it
@zkitty-norika check the new contracts
This is done.
Please force the msg.sender have to be the wallet having
MINTER_ROLE
(orMINTER
if you don't use AccessControl library.)MINTER_ROLE
wallet address.MINTER_ROLE
MINTER_ROLE
should be managed on the environment valuables of Vercel.https://github.com/PinkyNFT/pinky-contracs/blob/796920a42c20d71522fa73af7f00d68abd65926a/contracts/PinkyNFT.sol#L52-L90