Hello! I’m interested in using the ERC1155PresetMinterPauser but I don’t want users to be able to burn their assets. Should I be using another preset or modify the contract in some way? Thanks?
Welcome to the community
If you don’t want to include burn functionality, then instead of using the preset, you can create your own contract by extending from ERC1155 or ERC1155Pausable (depending on your use case) and use the concepts (such as access control) from the preset.
Heya, thanks for response. Can you help me understand what value I should use for the ‘data’ calue in the erc1155 mint method
_mint(address account, uint256 id, uint256 amount, bytes data). Thanks.
You can use any value for
data that suits your use case.
See: ERC1155 data parameter on mint method - #4 by abcoathup also the example: Create an ERC1155.