difftreelog
fix use helper logger in dev helpers
in: master
1 file changed
tests/src/util/playgrounds/unique.dev.tsdiffbeforeafterboth386 const eventIdStr = `${eventSection}.${eventMethod}`;386 const eventIdStr = `${eventSection}.${eventMethod}`;387 const waitLimitStr = `wait blocks remaining: ${maxBlocksToWait}`;387 const waitLimitStr = `wait blocks remaining: ${maxBlocksToWait}`;388 388 389 console.log(`[Block #${blockNumber}] Waiting for event \`${eventIdStr}\` (${waitLimitStr})`);389 this.helper.logger.log(`[Block #${blockNumber}] Waiting for event \`${eventIdStr}\` (${waitLimitStr})`);390 390 391 const apiAt = await this.helper.getApi().at(blockHash);391 const apiAt = await this.helper.getApi().at(blockHash);392 const eventRecords = (await apiAt.query.system.events()) as any;392 const eventRecords = (await apiAt.query.system.events()) as any;401 } else if (maxBlocksToWait > 0) {401 } else if (maxBlocksToWait > 0) {402 maxBlocksToWait--;402 maxBlocksToWait--;403 } else {403 } else {404 console.log(`Event \`${eventIdStr}\` is NOT found`);404 this.helper.logger.log(`Event \`${eventIdStr}\` is NOT found`);405 405 406 unsubscribe();406 unsubscribe();407 resolve(null);407 resolve(null);