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

difftreelog

fix use helper logger in dev helpers

Daniel Shiposha2022-10-13parent: #164f812.patch.diff
in: master

1 file changed

modifiedtests/src/util/playgrounds/unique.dev.tsdiffbeforeafterboth
386 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);