Skip to content

Commit 731e199

Browse files
authored
Improve docs for ERC721URIStorage._burn (OpenZeppelin#3324)
1 parent d4d8d2e commit 731e199

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

contracts/token/ERC721/extensions/ERC721URIStorage.sol

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,9 @@ abstract contract ERC721URIStorage is ERC721 {
4848
}
4949

5050
/**
51-
* @dev Destroys `tokenId`.
52-
* The approval is cleared when the token is burned.
53-
*
54-
* Requirements:
55-
*
56-
* - `tokenId` must exist.
57-
*
58-
* Emits a {Transfer} event.
51+
* @dev See {ERC721-_burn}. This override additionally checks to see if a
52+
* token-specific URI was set for the token, and if so, it deletes the token URI from
53+
* the storage mapping.
5954
*/
6055
function _burn(uint256 tokenId) internal virtual override {
6156
super._burn(tokenId);

0 commit comments

Comments
 (0)