ERC1155Burnable
ERC1155Burnable
Inherits: ERC1155
ERC-1155 burnable extension *
Note: security-contact: [email protected] *
Functions
burn
Burns a specific token.
TokenURI is not deleted when a token is burned, for efficiency reasons, as that would require an additional if statement in the _burn function; the savings from deleting tokenURI do not offset the gas cost of the additional if statement. This does not pose any security risks.
function burn(address _from, uint256 _id, uint256 _value) external;Parameters
Name
Type
Description
_from
address
The owner of the token.
_id
uint256
The token ID to burn.
_value
uint256
The amount of tokens to burn.
Last updated