MoxiePass.sol
Functions
mint
Mint to an address with a URI
function mint(address to, string memory uri) public onlyRole(MINTER_ROLE)
Parameters
Name | Type | Description |
---|---|---|
to | address | Address of beneficiary. |
uri | string | Token URI of NFT. |
tokenURI
The following function overrides existing functions from ERC721
and ERC721URIStorage
.
function tokenURI(
uint256 tokenId
) public view override(ERC721, ERC721URIStorage) returns (string memory)
Parameters
Name | Type | Description |
---|---|---|
tokenId | uint256 | Token ID. |
Return Values
Name | Type | Description |
---|---|---|
tokenURI | string | Token URI. |
Errors
MoxiePass_InvalidAdmin
error MoxiePass_InvalidAdmin();
MoxiePass_InvalidMinter
error MoxiePass_InvalidMinter();
MoxiePass_TransferNotAllowed
error MoxiePass_TransferNotAllowed();
MoxiePass_OnlyOneMintAllowed
error MoxiePass_OnlyOneMintAllowed();