difftreelog
test set amount of NFT/RFT to burn
in: master
2 files changed
tests/src/burnItem.test.tsdiffbeforeafterboth239 const tokenId = 10;239 const tokenId = 10;240240241 await usingApi(async (api) => {241 await usingApi(async (api) => {242 const tx = api.tx.nft.burnItem(collectionId, tokenId, 0);242 const tx = api.tx.nft.burnItem(collectionId, tokenId, 1);243 const badTransaction = async function () { 243 const badTransaction = async function () { 244 await submitTransactionExpectFailAsync(alice, tx);244 await submitTransactionExpectFailAsync(alice, tx);245 };245 };270270271 await usingApi(async (api) => {271 await usingApi(async (api) => {272272273 const burntx = api.tx.nft.burnItem(collectionId, tokenId, 0);273 const burntx = api.tx.nft.burnItem(collectionId, tokenId, 1);274 const events1 = await submitTransactionAsync(alice, burntx);274 const events1 = await submitTransactionAsync(alice, burntx);275 const result1 = getGenericResult(events1);275 const result1 = getGenericResult(events1);276 expect(result1.success).to.be.true;276 expect(result1.success).to.be.true;tests/src/transferFrom.test.tsdiffbeforeafterboth--- 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);