Skip to main content

MoxiePass.sol

Functions

mint

Mint to an address with a URI

function mint(address to, string memory uri) public onlyRole(MINTER_ROLE)

Parameters

NameTypeDescription
toaddressAddress of beneficiary.
uristringToken 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

NameTypeDescription
tokenIduint256Token ID.

Return Values

NameTypeDescription
tokenURIstringToken URI.

Errors

MoxiePass_InvalidAdmin

error MoxiePass_InvalidAdmin();

MoxiePass_InvalidMinter

error MoxiePass_InvalidMinter();

MoxiePass_TransferNotAllowed

error MoxiePass_TransferNotAllowed();

MoxiePass_OnlyOneMintAllowed

error MoxiePass_OnlyOneMintAllowed();