Skip to content

Commit

Permalink
docs: improve docs
Browse files Browse the repository at this point in the history
Co-authored-by: Alexander González <[email protected]>
  • Loading branch information
bidzyyys and alexfertel authored May 15, 2024
1 parent b4582ac commit 135d338
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions examples/erc721/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,10 @@ impl Token {
self.metadata.constructor(name, symbol, base_uri);
}

// Override [`ERC721UriStorage::token_uri`].
// Provide concatenation of Base URI from [`ERC721Metadata`]
// and `token_uri` from [`ERC721UriStorage`]
// Overrides [`ERC721UriStorage::token_uri`].
//
// Returns the concatenation of the Base URI from [`ERC721Metadata`]
// and the Token URI from [`ERC721UriStorage`].
pub fn token_uri(&self, token_id: U256) -> String {
let mut uri = self.metadata.base_uri();
let token_uri = self.uri_storage.token_uri(token_id);
Expand Down

0 comments on commit 135d338

Please sign in to comment.