From 23c3e0585e318c187c0ba2b152072bcc8a8708d8 Mon Sep 17 00:00:00 2001 From: zhl Date: Thu, 10 Feb 2022 15:38:44 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E7=9A=84tokenuri=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- contracts/BEBase.sol | 8 -------- 1 file changed, 8 deletions(-) diff --git a/contracts/BEBase.sol b/contracts/BEBase.sol index 0e491b7..adb0af1 100644 --- a/contracts/BEBase.sol +++ b/contracts/BEBase.sol @@ -19,14 +19,6 @@ abstract contract BEBase is ERC721, AccessControlEnumerable, ERC721Enumerable, O return _baseTokenURI; } - function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { - require(_exists(tokenId), "BEBase: URI query for nonexistent token"); - - string memory baseURI = _baseURI(); - uint256 tokenSub = tokenId % 1000; - return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenSub.toString(), '.png')) : ""; - } - /** * @dev Creates a new token for `to`. Its token ID will be automatically * assigned (and available on the emitted {IERC721-Transfer} event), and the token