-
Notifications
You must be signed in to change notification settings - Fork 204
Description
Minting functionality is not standardized in ERC-1155.
Source: https://eips.ethereum.org/EIPS/eip-1155
Code for minting is included in this repository as a demonstration (that's good) and it will be helpful to people studying this code as a reference implementation (also good). Currently this code is included in a file named ERC1155Mintable.sol (that's bad).
Because the minting functionality is not standardized, I recommend that any interfaces (interface
) or implementations (contract
) which implement minting should be in files that are not named including "1155". At current, somebody referencing this repository may mistakingly assume that the provided minting interface is standardized.
I recommend that these example extensions should be renamed as a "mock" or "example" or other. A reference for best practice in this aspect is the file organization presented at
https://github.com/0xcert/ethereum-erc721/tree/master/src/contracts/tokens
Similarly, this issue also applies to other non-standard implementations provided in this project.