移除自定义的tokenuri方法
This commit is contained in:
parent
1cd93fff6d
commit
23c3e0585e
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user