aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sol-cov/src
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-06-12 09:01:33 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-06-12 09:01:33 +0800
commit94398d70f4511419f77bd17b25d0060eba08c4dc (patch)
treee11f02c0858142b8db9e2840d614636fa996a2e7 /packages/sol-cov/src
parentf4a61b4c70b18cd4eef70eafc79e14b8c0161df3 (diff)
downloaddexon-sol-tools-94398d70f4511419f77bd17b25d0060eba08c4dc.tar
dexon-sol-tools-94398d70f4511419f77bd17b25d0060eba08c4dc.tar.gz
dexon-sol-tools-94398d70f4511419f77bd17b25d0060eba08c4dc.tar.bz2
dexon-sol-tools-94398d70f4511419f77bd17b25d0060eba08c4dc.tar.lz
dexon-sol-tools-94398d70f4511419f77bd17b25d0060eba08c4dc.tar.xz
dexon-sol-tools-94398d70f4511419f77bd17b25d0060eba08c4dc.tar.zst
dexon-sol-tools-94398d70f4511419f77bd17b25d0060eba08c4dc.zip
Speed-up sol-cov
Diffstat (limited to 'packages/sol-cov/src')
-rw-r--r--packages/sol-cov/src/trace_collection_subprovider.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/sol-cov/src/trace_collection_subprovider.ts b/packages/sol-cov/src/trace_collection_subprovider.ts
index 7500e5bd3..ba9f03897 100644
--- a/packages/sol-cov/src/trace_collection_subprovider.ts
+++ b/packages/sol-cov/src/trace_collection_subprovider.ts
@@ -163,7 +163,7 @@ export class TraceCollectionSubprovider extends Subprovider {
cb();
}
private async _recordTxTraceAsync(address: string, data: string | undefined, txHash: string): Promise<void> {
- await this._web3Wrapper.awaitTransactionMinedAsync(txHash);
+ await this._web3Wrapper.awaitTransactionMinedAsync(txHash, 0);
const trace = await this._web3Wrapper.getTransactionTraceAsync(txHash, {
disableMemory: true,
disableStack: false,
@@ -222,7 +222,7 @@ export class TraceCollectionSubprovider extends Subprovider {
};
try {
const txHash = await this._web3Wrapper.sendTransactionAsync(fakeTxData);
- await this._web3Wrapper.awaitTransactionMinedAsync(txHash);
+ await this._web3Wrapper.awaitTransactionMinedAsync(txHash, 0);
} catch (err) {
// Even if this transaction failed - we've already recorded it's trace.
_.noop();