Skip to content

Commit

Permalink
Improve docs for ERC721URIStorage._burn (#3324)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcIovin committed Apr 7, 2022
1 parent d4d8d2e commit 731e199
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions contracts/token/ERC721/extensions/ERC721URIStorage.sol
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,9 @@ abstract contract ERC721URIStorage is ERC721 {
}

/**
* @dev Destroys `tokenId`.
* The approval is cleared when the token is burned.
*
* Requirements:
*
* - `tokenId` must exist.
*
* Emits a {Transfer} event.
* @dev See {ERC721-_burn}. This override additionally checks to see if a
* token-specific URI was set for the token, and if so, it deletes the token URI from
* the storage mapping.
*/
function _burn(uint256 tokenId) internal virtual override {
super._burn(tokenId);
Expand Down

0 comments on commit 731e199

Please sign in to comment.