Why isn't there an ERC1155 Mintable?

Just wondering, is there any particular reason why OZ hasn’t included an ERC1155Mintable module? I see Pausable and Burnable Modules are there.

1 Like

Hi @antron3000,

Welcome to the community :wave:

OpenZeppelin Contracts v3.x uses AccessControl which provides a great deal of flexibility in defining roles. With this flexibility in mind, there isn’t an opinionated mintable contract.

We can use the preset ERC1155 contract that is opinionated and includes mint and mintBatch functionality which can only be called from accounts with the MINTER_ROLE.

Alternatively if you want to create your own contract extending from the ERC1155 implementation you can use the preset contract as a reference.

Feel free to ask all the questions that you need.

1 Like

Got it, thank you for the answer!

1 Like