difftreelog
fix RMRK disconnect
in: master
20 files changed
tests/src/rmrk/acceptNft.test.tsdiffbeforeafterboth103 expect(isChild).to.be.false;103 expect(isChild).to.be.false;104 });104 });105105106 after(() => { api.disconnect(); });106 after(async() => { await api.disconnect(); });107});107});108108tests/src/rmrk/addResource.test.tsdiffbeforeafterboth432432433433434 after(() => {434 after(() => {435 api.disconnect();435 after(async() => { await api.disconnect(); });436 });436 });437});437});438438tests/src/rmrk/addTheme.test.tsdiffbeforeafterboth125 await expectTxFailure(/rmrkEquip\.PermissionError/, tx);125 await expectTxFailure(/rmrkEquip\.PermissionError/, tx);126 });126 });127127128 after(() => { api.disconnect(); });128 after(async() => { await api.disconnect(); });129});129});130130tests/src/rmrk/burnNft.test.tsdiffbeforeafterboth166 });166 });167 });167 });168168169 after(() => {169 after(async() => { await api.disconnect(); });170 api.disconnect();171 });172});170});tests/src/rmrk/changeCollectionIssuer.test.tsdiffbeforeafterboth49 });49 });50 });50 });515152 after(() => {52 after(async() => { await api.disconnect(); });53 api.disconnect();54 });55});53});tests/src/rmrk/createBase.test.tsdiffbeforeafterboth84 ]);84 ]);85 });85 });868687 after(() => { api.disconnect(); });87 after(async() => { await api.disconnect(); });88});88});8989tests/src/rmrk/createCollection.test.tsdiffbeforeafterboth21 await createCollection(api, alice, 'no-limit-metadata', null, 'no-limit-symbol');21 await createCollection(api, alice, 'no-limit-metadata', null, 'no-limit-symbol');22 });22 });232324 after(() => { api.disconnect(); });24 after(async() => { await api.disconnect(); });25});25});2626tests/src/rmrk/deleteCollection.test.tsdiffbeforeafterboth42 });42 });43 });43 });444445 after(() => {45 after(async() => { await api.disconnect(); });46 api.disconnect();47 });48});46});tests/src/rmrk/equipNft.test.tsdiffbeforeafterboth336 await expectTxFailure(/rmrkEquip\.CollectionNotEquippable/, tx);336 await expectTxFailure(/rmrkEquip\.CollectionNotEquippable/, tx);337 });337 });338338339 after(() => {339 after(async() => { await api.disconnect(); });340 api.disconnect();341 });342});340});tests/src/rmrk/getOwnedNfts.test.tsdiffbeforeafterboth76 });76 });77 });77 });787879 after(() => { api.disconnect(); });79 after(async() => { await api.disconnect(); });80});80});8181tests/src/rmrk/lockCollection.test.tsdiffbeforeafterboth112 });112 });113 });113 });114114115 after(() => {115 after(async() => { await api.disconnect(); });116 api.disconnect();117 });118});116});tests/src/rmrk/mintNft.test.tsdiffbeforeafterboth207 expect(nft.isSome).to.be.false;207 expect(nft.isSome).to.be.false;208 });208 });209209210 after(() => { api.disconnect(); });210 after(async() => { await api.disconnect(); });211});211});212212tests/src/rmrk/rejectNft.test.tsdiffbeforeafterboth90 await expectTxFailure(/rmrkCore\.CannotRejectNonPendingNft/, tx);90 await expectTxFailure(/rmrkCore\.CannotRejectNonPendingNft/, tx);91 });91 });929293 after(() => { api.disconnect(); });93 after(async() => { await api.disconnect(); });94});94});9595tests/src/rmrk/removeResource.test.tsdiffbeforeafterboth343 await expectTxFailure(/rmrkCore\.NoPermission/, tx);343 await expectTxFailure(/rmrkCore\.NoPermission/, tx);344 });344 });345345346 after(() => {346 after(async() => { await api.disconnect(); });347 api.disconnect();348 });349});347});tests/src/rmrk/rmrkIsolation.test.tsdiffbeforeafterboth90 bob = privateKey('//Bob');90 bob = privateKey('//Bob');91 normalizedAlice = {Substrate: helper.address.normalizeSubstrateToChainFormat(alice.address)};91 normalizedAlice = {Substrate: helper.address.normalizeSubstrateToChainFormat(alice.address)};929293 requirePalletsOrSkip(this, helper, [Pallets.RmrkCore]);93 await requirePalletsOrSkip(this, helper, [Pallets.RmrkCore]);949495 const collectionIds = await createRmrkCollection(helper, alice);95 const collectionIds = await createRmrkCollection(helper, alice);96 uniqueCollectionId = collectionIds.uniqueId;96 uniqueCollectionId = collectionIds.uniqueId;tests/src/rmrk/sendNft.test.tsdiffbeforeafterboth251 await expectTxFailure(/rmrkCore\.NoPermission/, tx);251 await expectTxFailure(/rmrkCore\.NoPermission/, tx);252 });252 });253253254 after(() => { api.disconnect(); });254 after(async() => { await api.disconnect(); });255});255});256256tests/src/rmrk/setCollectionProperty.test.tsdiffbeforeafterboth62 });62 });63 });63 });646465 after(() => {65 after(async() => { await api.disconnect(); });66 api.disconnect();67 });68});66});tests/src/rmrk/setEquippableList.test.tsdiffbeforeafterboth110 await expectTxFailure(/rmrkEquip\.PartDoesntExist/, tx);110 await expectTxFailure(/rmrkEquip\.PartDoesntExist/, tx);111 });111 });112112113 after(() => { api.disconnect(); });113 after(async() => { await api.disconnect(); });114});114});115115tests/src/rmrk/setNftProperty.test.tsdiffbeforeafterboth84 await expectTxFailure(/rmrkCore\.NoPermission/, tx);84 await expectTxFailure(/rmrkCore\.NoPermission/, tx);85 });85 });868687 after(() => { api.disconnect(); });87 after(async() => { await api.disconnect(); });88});88});8989tests/src/rmrk/setResourcePriorities.test.tsdiffbeforeafterboth54 await expectTxFailure(/rmrkCore\.NoAvailableNftId/, tx);54 await expectTxFailure(/rmrkCore\.NoAvailableNftId/, tx);55 });55 });565657 after(() => { api.disconnect(); });57 after(async() => { await api.disconnect(); });58});58});5959