difftreelog
fix don't enable testutils if not exist
in: master
1 file changed
tests/src/util/playgrounds/unique.dev.tsdiffbeforeafterboth11import {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 '.';141515export class SilentLogger {16export class SilentLogger {16 log(_msg: any, _level: any): void { }17 log(_msg: any, _level: any): void { }487 }488 }488489489 async enable() {490 async enable() {491 if (this.helper.fetchMissingPalletNames([Pallets.TestUtils]).length != 0) {492 return;493 }494490 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);