August 2019
Intermediate to advanced
486 pages
13h 52m
English
There are two _burn() internal functions present in the implementation. These are overloaded functions that have the same name; however, they take different arguments.
The function takes the tokenId of an NFT that is to be burned. The _burn() function code is defined as follows:
function _burn(uint256 tokenId) internal { _burn(ownerOf(tokenId), tokenId);}
The code finds the owner of the token and calls the other overloaded _burn() function. As it is an internal function, this can be used in the inherited contract to burn specific tokens when required.
This function should be used by the inherited contracts when they directly want to burn a token using just its tokenId only. For example, you can implement ...