Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

TestNonFungibleToken

Git Source

Inherits: ERC721

Functions

constructor

constructor() ERC721("Non-fungible", "NFT");

mint

Mint a non-fungible token for oneself.

function mint(uint256 tokenId) external;

Parameters

NameTypeDescription
tokenIduint256The non-fungible token ID

mint

Mint a non-fungible token.

function mint(address to, uint256 tokenId) external;

Parameters

NameTypeDescription
toaddressThe account that will receive the token
tokenIduint256The non-fungible token ID