--- a/tests/src/util/playgrounds/unique.dev.ts +++ b/tests/src/util/playgrounds/unique.dev.ts @@ -11,6 +11,7 @@ import {ICrossAccountId, TSigner} from './types'; import {FrameSystemEventRecord} from '@polkadot/types/lookup'; import {VoidFn} from '@polkadot/api/types'; +import {Pallets} from '.'; export class SilentLogger { log(_msg: any, _level: any): void { } @@ -487,6 +488,10 @@ } async enable() { + if (this.helper.fetchMissingPalletNames([Pallets.TestUtils]).length != 0) { + return; + } + const signer = this.helper.util.fromSeed('//Alice'); await this.helper.getSudo().executeExtrinsic(signer, 'api.tx.testUtils.enable', [], true); }