Skip to the content.

ERC721URIStorageUpgradeable.sol

View Source: @openzeppelin\contracts-upgradeable\token\ERC721\extensions\ERC721URIStorageUpgradeable.sol

↗ Extends: Initializable, ERC721Upgradeable ↘ Derived Contracts: CreatorToken

ERC721URIStorageUpgradeable

ERC721 token with storage based token URI management.

Contract Members

Constants & Variables

mapping(uint256 => string) private _tokenURIs;
uint256[49] private __gap;

Functions

__ERC721URIStorage_init

function __ERC721URIStorage_init() internal nonpayable onlyInitializing 

Arguments

| Name | Type | Description | | ————- |————- | —–|

__ERC721URIStorage_init_unchained

function __ERC721URIStorage_init_unchained() internal nonpayable onlyInitializing 

Arguments

| Name | Type | Description | | ————- |————- | —–|

tokenURI

See {IERC721Metadata-tokenURI}.

function tokenURI(uint256 tokenId) public view
returns(string)

Arguments

Name Type Description
tokenId uint256  

_setTokenURI

Sets _tokenURI as the tokenURI of tokenId. Requirements:

function _setTokenURI(uint256 tokenId, string _tokenURI) internal nonpayable

Arguments

Name Type Description
tokenId uint256  
_tokenURI string  

_burn

Destroys tokenId. The approval is cleared when the token is burned. Requirements:

function _burn(uint256 tokenId) internal nonpayable

Arguments

Name Type Description
tokenId uint256  

Contracts