1

I couldn't find such mint, burn functions on the ERC721, ERC20, ERC1155 standard. Should developer add these function by themselves? Why wasn't it considered when the standard protocols were made?

Thank you.

1
  • 1
    I wouldnt say it wasnt considered, but rather they are upgradeable, if you check openZeppelin contracts those are virtual functions, meaning is for the user to override accordingly.
    – Julissa DC
    Nov 25, 2021 at 13:34

1 Answer 1

1

Yes, it is the responsibility of the implementer to add these functions.

In the specification there is justification why these are not included in the standard:

Creation of NFTs (“minting”) and destruction of NFTs (“burning”) is not included in the specification. Your contract may implement these by other means. Please see the event documentation for your responsibilities when creating or destroying NFTs.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.