How to set MINT_ROLE in a grantRole function of Access Control

@abcoathup @Skyge could you please help me out with below
how to set MINT_ROLE in a grantRole function of accesscontrol? the arguement takes bytes32 getting error when calling grantRole function to set the role ?

1 Like

Hi @senavi,

Can you share more information on how you have setup your access control?
What roles did you setup in the constructor of your contract?
Can you share your contract?

See the documentation for an example: https://docs.openzeppelin.com/contracts/3.x/access-control#using-access-control

1 Like

Hi @senavi,

As you can now call mint I assume that you are able to call grantRole and that the issue is actually the _sync you are trying to do in mint: Gas estimation failed for mint in ERC721 on Remix