difftreelog
misk: fix pr
in: master
1 file changed
pallets/nonfungible/src/erc.rsdiffbeforeafterboth218 /// @notice A distinct Uniform Resource Identifier (URI) for a given asset.218 /// @notice A distinct Uniform Resource Identifier (URI) for a given asset.219 ///219 ///220 /// @dev If the collection has a `url` property and it is not empty, it is returned.220 /// @dev If the collection has a `url` property and it is not empty, it is returned.221 /// Else If the collection does not have a property with key `schemaName` or its value is not equal to `ERC721Metadata`, it return an error `tokenURI not set`.221 /// Else If the collection does not have a property with key `schemaName` or its value is not equal to `ERC721Metadata`, it return an error `tokenURI not set`.222 ///223 /// If the property `baseURI` is empty or absent, return "" (empty string)222 /// If the property `baseURI` is empty or absent, return "" (empty string)224 /// otherwise, if property `suffix` present and is non-empty, return concatenation of baseURI and suffix223 /// otherwise, if property `suffix` present and is non-empty, return concatenation of baseURI and suffix225 /// otherwise, return concatenation of `baseURI` and stringified token id (decimal stringifying, without paddings).224 /// otherwise, return concatenation of `baseURI` and stringified token id (decimal stringifying, without paddings).225 /// 226 /// @return token's const_metadata226 /// @return token's const_metadata227 #[solidity(rename_selector = "tokenURI")]227 #[solidity(rename_selector = "tokenURI")]228 fn token_uri(&self, token_id: uint256) -> Result<string> {228 fn token_uri(&self, token_id: uint256) -> Result<string> {