From 731e199038dae40428afd2fb1056bafbdf54ea06 Mon Sep 17 00:00:00 2001 From: mcIovin <60447858+mcIovin@users.noreply.github.com> Date: Thu, 7 Apr 2022 18:28:18 -0500 Subject: [PATCH] Improve docs for ERC721URIStorage._burn (#3324) --- .../token/ERC721/extensions/ERC721URIStorage.sol | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/contracts/token/ERC721/extensions/ERC721URIStorage.sol b/contracts/token/ERC721/extensions/ERC721URIStorage.sol index bc0e07e7f..f55fdb54c 100644 --- a/contracts/token/ERC721/extensions/ERC721URIStorage.sol +++ b/contracts/token/ERC721/extensions/ERC721URIStorage.sol @@ -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);