git.delta.rocks / unique-network / refs/commits / be12ad2dda1c

difftreelog

fix don't enable testutils if not exist

Daniel Shiposha2022-10-13parent: #63d926e.patch.diff
in: master

1 file changed

modifiedtests/src/util/playgrounds/unique.dev.tsdiffbeforeafterboth
11import {ICrossAccountId, TSigner} from './types';11import {ICrossAccountId, TSigner} from './types';
12import {FrameSystemEventRecord} from '@polkadot/types/lookup';12import {FrameSystemEventRecord} from '@polkadot/types/lookup';
13import {VoidFn} from '@polkadot/api/types';13import {VoidFn} from '@polkadot/api/types';
14import {Pallets} from '.';
1415
15export class SilentLogger {16export class SilentLogger {
16 log(_msg: any, _level: any): void { }17 log(_msg: any, _level: any): void { }
487 }488 }
488489
489 async enable() {490 async enable() {
491 if (this.helper.fetchMissingPalletNames([Pallets.TestUtils]).length != 0) {
492 return;
493 }
494
490 const signer = this.helper.util.fromSeed('//Alice');495 const signer = this.helper.util.fromSeed('//Alice');
491 await this.helper.getSudo<DevUniqueHelper>().executeExtrinsic(signer, 'api.tx.testUtils.enable', [], true);496 await this.helper.getSudo<DevUniqueHelper>().executeExtrinsic(signer, 'api.tx.testUtils.enable', [], true);