From 3f1e2f35ad249795c0d3394b99d2bef9210483a4 Mon Sep 17 00:00:00 2001 From: Daniel Shiposha Date: Thu, 22 Dec 2022 15:02:10 +0000 Subject: [PATCH] fix: playgrounds relay helper --- --- a/tests/src/util/playgrounds/unique.dev.ts +++ b/tests/src/util/playgrounds/unique.dev.ts @@ -118,7 +118,16 @@ } } -export class DevRelayHelper extends RelayHelper {} +export class DevRelayHelper extends RelayHelper { + wait: WaitGroup; + + constructor(logger: { log: (msg: any, level: any) => void, level: any }, options: {[key: string]: any} = {}) { + options.helperBase = options.helperBase ?? DevRelayHelper; + + super(logger, options); + this.wait = new WaitGroup(this); + } +} export class DevWestmintHelper extends WestmintHelper { wait: WaitGroup; --- a/tests/src/util/playgrounds/unique.ts +++ b/tests/src/util/playgrounds/unique.ts @@ -2968,11 +2968,13 @@ } export class RelayHelper extends XcmChainHelper { + balance: SubstrateBalanceGroup; xcm: XcmGroup; constructor(logger?: ILogger, options: {[key: string]: any} = {}) { super(logger, options.helperBase ?? RelayHelper); + this.balance = new SubstrateBalanceGroup(this); this.xcm = new XcmGroup(this, 'xcmPallet'); } } -- gitstuff