difftreelog
feat testUtils read testValue at specific block
in: master
1 file changed
tests/src/util/playgrounds/unique.dev.tsdiffbeforeafterboth537 await this.helper.executeExtrinsic(signer, 'api.tx.testUtils.setTestValueAndRollback', [testVal], true);537 await this.helper.executeExtrinsic(signer, 'api.tx.testUtils.setTestValueAndRollback', [testVal], true);538 }538 }539539540 async testValue() {540 async testValue(blockIdx?: number) {541 const api = blockIdx541 return (await this.helper.callRpc('api.query.testUtils.testValue', [])).toNumber();542 ? await this.helper.getApi().at(await this.helper.callRpc('api.rpc.chain.getBlockHash', [blockIdx]))543 : this.helper.getApi();544545 return (await api.query.testUtils.testValue()).toJSON();542 }546 }543547544 async justTakeFee(signer: TSigner) {548 async justTakeFee(signer: TSigner) {