Fix ERC4906 compliance of ERC721URIStorage (#4055)

Co-authored-by: Francisco <fg@frang.io>
This commit is contained in:
Hadrien Croubois
2023-02-17 17:43:23 +01:00
committed by GitHub
parent 96a2297e15
commit 08d085f2c9
3 changed files with 15 additions and 3 deletions

View File

@ -15,6 +15,13 @@ abstract contract ERC721URIStorage is IERC4906, ERC721 {
// Optional mapping for token URIs
mapping(uint256 => string) private _tokenURIs;
/**
* @dev See {IERC165-supportsInterface}
*/
function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, IERC165) returns (bool) {
return interfaceId == bytes4(0x49064906) || super.supportsInterface(interfaceId);
}
/**
* @dev See {IERC721Metadata-tokenURI}.
*/