ERC721Royalty
ERC721Royalty
Inherits: ERC2981, ERC721
Extension of ERC721 with the ERC2981 NFT Royalty Standard, a standardized way to retrieve royalty payment information.
Functions
_burn
Burns a specific token.
This override additionally clears the royalty information for the token.
function _burn(uint256 _tokenId) internal virtual override;Parameters
Name
Type
Description
_tokenId
uint256
The token ID to burn.
_mint
Mints a new token.
For security reasons, _setRoyaltyInfo() is called only if royaltyBps and royaltyRecipient are not 0. _setTokenRoyalty reverts if royaltyRecipient is address(0).
function _mint(address _to, uint256 _tokenId, bytes memory _data) internal virtual override;Parameters
Name
Type
Description
_to
address
The address to mint the token to.
_tokenId
uint256
The token ID; the child/derived contract is responsible for calculating it.
_data
bytes
The data to associate with the token.
Last updated