--- a/pallets/nonfungible/src/erc.rs +++ b/pallets/nonfungible/src/erc.rs @@ -252,7 +252,7 @@ } } - return Ok(base_uri + token_id.to_string().as_str()); + return Ok(base_uri); } } --- a/pallets/refungible/src/erc.rs +++ b/pallets/refungible/src/erc.rs @@ -248,7 +248,7 @@ } } - return Ok(base_uri + token_id.to_string().as_str()); + return Ok(base_uri); } } --- a/tests/src/eth/nonFungible.test.ts +++ b/tests/src/eth/nonFungible.test.ts @@ -117,9 +117,9 @@ expect(await contract.methods.tokenURI(nextTokenId).call()).to.be.equal('Token URI'); }); - itEth('TokenURI from baseURI + tokenId', async ({helper}) => { + itEth('TokenURI from baseURI', async ({helper}) => { const {contract, nextTokenId} = await setup(helper, 'BaseURI_'); - expect(await contract.methods.tokenURI(nextTokenId).call()).to.be.equal('BaseURI_' + nextTokenId); + expect(await contract.methods.tokenURI(nextTokenId).call()).to.be.equal('BaseURI_'); }); itEth('TokenURI from baseURI + suffix', async ({helper}) => { --- a/tests/src/eth/reFungibleToken.test.ts +++ b/tests/src/eth/reFungibleToken.test.ts @@ -114,9 +114,9 @@ expect(await contract.methods.tokenURI(nextTokenId).call()).to.be.equal('Token URI'); }); - itEth('TokenURI from baseURI + tokenId', async ({helper}) => { + itEth('TokenURI from baseURI', async ({helper}) => { const {contract, nextTokenId} = await setup(helper, 'BaseURI_'); - expect(await contract.methods.tokenURI(nextTokenId).call()).to.be.equal('BaseURI_' + nextTokenId); + expect(await contract.methods.tokenURI(nextTokenId).call()).to.be.equal('BaseURI_'); }); itEth('TokenURI from baseURI + suffix', async ({helper}) => {