From 9aa0a891160dfc960e9d64264de9c31174a6f7bf Mon Sep 17 00:00:00 2001 From: Trubnikov Sergey Date: Tue, 26 Jul 2022 06:08:59 +0000 Subject: [PATCH] misk: fix pr --- --- a/pallets/nonfungible/src/erc.rs +++ b/pallets/nonfungible/src/erc.rs @@ -218,11 +218,11 @@ /// @notice A distinct Uniform Resource Identifier (URI) for a given asset. /// /// @dev If the collection has a `url` property and it is not empty, it is returned. - /// 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`. - /// - /// If the property `baseURI` is empty or absent, return "" (empty string) - /// otherwise, if property `suffix` present and is non-empty, return concatenation of baseURI and suffix - /// otherwise, return concatenation of `baseURI` and stringified token id (decimal stringifying, without paddings). + /// 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`. + /// If the property `baseURI` is empty or absent, return "" (empty string) + /// otherwise, if property `suffix` present and is non-empty, return concatenation of baseURI and suffix + /// otherwise, return concatenation of `baseURI` and stringified token id (decimal stringifying, without paddings). + /// /// @return token's const_metadata #[solidity(rename_selector = "tokenURI")] fn token_uri(&self, token_id: uint256) -> Result { -- gitstuff