git.delta.rocks / unique-network / refs/commits / 931e50f87425

difftreelog

fix use burnFrom in burnItem test with admin rights

Daniel Shiposha2022-06-29parent: #5013d40.patch.diff
in: master

1 file changed

modifiedtests/src/burnItem.test.tsdiffbeforeafterboth
155 await addCollectionAdminExpectSuccess(alice, collectionId, bob.address);155 await addCollectionAdminExpectSuccess(alice, collectionId, bob.address);
156156
157 await usingApi(async (api) => {157 await usingApi(async (api) => {
158 const tx = api.tx.unique.burnItem(collectionId, tokenId, 1);158 const tx = api.tx.unique.burnFrom(collectionId, {Substrate: alice.address}, tokenId, 1);
159 const events = await submitTransactionAsync(bob, tx);159 const events = await submitTransactionAsync(bob, tx);
160 const result = getGenericResult(events);160 const result = getGenericResult(events);
161161