@@ -701,14 +701,14 @@ use openzeppelin::token::extensions::ERC721URIStorageComponent;
701
701
702
702
:MetadataUpdated: xref:ERC721URIStorageComponent-MetadataUpdated[MetadataUpdated]
703
703
704
- Extension of ERC721 to support dynamic NFTs .
704
+ Extension of ERC721 to support storage-based URI management .
705
705
It is an implementation of <<IERC721Metadata, IERC721Metadata>> but with a different `token_uri` behavior.
706
706
707
707
NOTE: Implementing xref:#ERC721Component[ERC721Component] is a requirement for this component to be implemented.
708
708
709
- This extension keeps a track of URIs of each token id of a particular ERC721 token. The URI of any `token_id` can be set by calling the
710
- internal function, xref:#ERC721URIStorageComponent-set_token_uri[set_token_uri]. Updated `token_uri ` can be queried through the external function
711
- xref:#ERC721URIStorageComponent-token_uri[token_uri].
709
+ The ERC721URIStorage component provides a flexible IERC721Metadata implementation that enables storage-based token URI management.
710
+ The URI of any `token_id ` can be set by calling the internal function, xref:#ERC721URIStorageComponent-set_token_uri[set_token_uri].
711
+ Updated `token_uri` can be queried through the external function xref:#ERC721URIStorageComponent-token_uri[token_uri].
712
712
713
713
[.contract-index#ERC721URIStorageComponent-Embeddable-Impls]
714
714
.Embeddable Implementations
@@ -757,11 +757,11 @@ See <<IERC721Metadata-symbol,IERC721::symbol>>.
757
757
Returns the Uniform Resource Identifier (URI) for the `token_id` token.
758
758
759
759
760
- If a base URI is set and the token URI is set , the resulting URI for each token will be the concatenation of the base URI and the token URI.
760
+ If a base URI is set and the token URI is set, the resulting URI for each token will be the concatenation of the base URI and the token URI.
761
761
762
- If a base URI is set and the token URI is not set , the resulting URI for each token will be the concatenation of the base URI and the `token_id`.
762
+ If a base URI is set and the token URI is not set, the resulting URI for each token will be the concatenation of the base URI and the `token_id`.
763
763
764
- If a base URI is not set and the token URI is set , the resulting URI for each token will be the token URI.
764
+ If a base URI is not set and the token URI is set, the resulting URI for each token will be the token URI.
765
765
766
766
If the base URI and token URI are not set for `token_id`, the return value will be an empty `ByteArray`.
767
767
0 commit comments