git.delta.rocks / unique-network / refs/commits / 9fa2d18c4c7a

difftreelog

fix skip rmrk before

Daniel Shiposha2022-10-14parent: #78f4f94.patch.diff
in: master

1 file changed

modifiedtests/src/rmrk/rmrkIsolation.test.tsdiffbeforeafterboth
1import {executeTransaction} from '../substrate/substrate-api';1import {executeTransaction} from '../substrate/substrate-api';
2import {IKeyringPair} from '@polkadot/types/types';2import {IKeyringPair} from '@polkadot/types/types';
3import {itSub, expect, usingPlaygrounds, Pallets} from '../util/playgrounds';3import {itSub, expect, usingPlaygrounds, Pallets, requirePalletsOrSkip} from '../util/playgrounds';
4import {UniqueHelper} from '../util/playgrounds/unique';4import {UniqueHelper} from '../util/playgrounds/unique';
55
6let alice: IKeyringPair;6let alice: IKeyringPair;
84 let rmrkNftId: number;84 let rmrkNftId: number;
85 let normalizedAlice: {Substrate: string};85 let normalizedAlice: {Substrate: string};
8686
87 before(async () => {87 before(async function() {
88 await usingPlaygrounds(async (helper, privateKey) => {88 await usingPlaygrounds(async (helper, privateKey) => {
89 alice = privateKey('//Alice');89 alice = privateKey('//Alice');
90 bob = privateKey('//Bob');90 bob = privateKey('//Bob');
91 normalizedAlice = {Substrate: helper.address.normalizeSubstrateToChainFormat(alice.address)};91 normalizedAlice = {Substrate: helper.address.normalizeSubstrateToChainFormat(alice.address)};
92
93 requirePalletsOrSkip(this, helper, [Pallets.RmrkCore]);
9294
93 const collectionIds = await createRmrkCollection(helper, alice);95 const collectionIds = await createRmrkCollection(helper, alice);
94 uniqueCollectionId = collectionIds.uniqueId;96 uniqueCollectionId = collectionIds.uniqueId;