ODCdataManagersERC721extensions
ERC721Mintable
Abstract contract that provides minting capabilities of the ERC721 Data Manager
onlyMinter
Modifier to check if the caller is the minter
mint
Mint token of id to to
The caller must be allowed to mint
Parameters
| Name | Type | Description |
|---|---|---|
| to | address | Address to mint token to |
| tokenId | uint256 | Token id to mint |
safeMint
_Mints tokenId, transfers it to to and checks for to acceptance.
Requirements:
tokenIdmust not exist.- If
torefers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
Emits a {Transfer} event._
safeMint
_Same as {xref-ERC721-safeMint-address-uint256-}[_safeMint], with an additional data parameter which is
forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
_checkMinter
SHOULD throw an error if the sender is not allowed to mint

