git.delta.rocks / unique-network / refs/commits / 7e1b91d41c2f

difftreelog

misck: fix pr

Trubnikov Sergey2022-07-26parent: #090f6fa.patch.diff
in: master

1 file changed

modifiedpallets/nonfungible/src/erc.rsdiffbeforeafterboth
218 /// @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 token has a `url` property and it is not empty, it is returned.220 /// @dev If the token 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 /// If the collection property `baseURI` is empty or absent, return "" (empty string)222 /// If the collection property `baseURI` is empty or absent, return "" (empty string)
223 /// otherwise, if token property `suffix` present and is non-empty, return concatenation of baseURI and suffix223 /// otherwise, if token property `suffix` present and is non-empty, return concatenation of baseURI and suffix
224 /// 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 ///225 ///
226 /// @return token's const_metadata226 /// @return token's const_metadata
227 #[solidity(rename_selector = "tokenURI")]227 #[solidity(rename_selector = "tokenURI")]