From 46f8534a87d1431efbeed17717305c0c22feb212 Mon Sep 17 00:00:00 2001 From: Yaroslav Bolyukin Date: Wed, 27 Oct 2021 09:08:46 +0000 Subject: [PATCH] test: set amount of NFT/RFT to burn --- --- a/tests/src/burnItem.test.ts +++ b/tests/src/burnItem.test.ts @@ -239,7 +239,7 @@ const tokenId = 10; await usingApi(async (api) => { - const tx = api.tx.nft.burnItem(collectionId, tokenId, 0); + const tx = api.tx.nft.burnItem(collectionId, tokenId, 1); const badTransaction = async function () { await submitTransactionExpectFailAsync(alice, tx); }; @@ -270,7 +270,7 @@ await usingApi(async (api) => { - const burntx = api.tx.nft.burnItem(collectionId, tokenId, 0); + const burntx = api.tx.nft.burnItem(collectionId, tokenId, 1); const events1 = await submitTransactionAsync(alice, burntx); const result1 = getGenericResult(events1); expect(result1.success).to.be.true; --- a/tests/src/transferFrom.test.ts +++ b/tests/src/transferFrom.test.ts @@ -265,7 +265,7 @@ await usingApi(async () => { const reFungibleCollectionId = await createCollectionExpectSuccess({mode: {type: 'ReFungible'}}); const newReFungibleTokenId = await createItemExpectSuccess(Alice, reFungibleCollectionId, 'ReFungible'); - await burnItemExpectSuccess(Alice, reFungibleCollectionId, newReFungibleTokenId, 1); + await burnItemExpectSuccess(Alice, reFungibleCollectionId, newReFungibleTokenId, 100); await approveExpectFail(reFungibleCollectionId, newReFungibleTokenId, Alice, Bob); await transferFromExpectFail(reFungibleCollectionId, newReFungibleTokenId, Bob, Alice, Charlie, 1); -- gitstuff