diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-06-15 07:00:24 +0800 |
---|---|---|
committer | Alex Browne <stephenalexbrowne@gmail.com> | 2018-06-15 07:00:24 +0800 |
commit | d9292a70bfa00715b6b007b0ecd696db02b1d042 (patch) | |
tree | 82831c12998da930427f1be3eb11b7d91ccc5406 /packages/sol-cov | |
parent | a9c23b7c2857a826756b919e6be73456536e344d (diff) | |
download | dexon-sol-tools-d9292a70bfa00715b6b007b0ecd696db02b1d042.tar dexon-sol-tools-d9292a70bfa00715b6b007b0ecd696db02b1d042.tar.gz dexon-sol-tools-d9292a70bfa00715b6b007b0ecd696db02b1d042.tar.bz2 dexon-sol-tools-d9292a70bfa00715b6b007b0ecd696db02b1d042.tar.lz dexon-sol-tools-d9292a70bfa00715b6b007b0ecd696db02b1d042.tar.xz dexon-sol-tools-d9292a70bfa00715b6b007b0ecd696db02b1d042.tar.zst dexon-sol-tools-d9292a70bfa00715b6b007b0ecd696db02b1d042.zip |
Remove unused variables and other small fixes
Diffstat (limited to 'packages/sol-cov')
-rw-r--r-- | packages/sol-cov/src/revert_trace.ts | 2 | ||||
-rw-r--r-- | packages/sol-cov/src/revert_trace_subprovider.ts | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/packages/sol-cov/src/revert_trace.ts b/packages/sol-cov/src/revert_trace.ts index 04d410f0a..1d52b969e 100644 --- a/packages/sol-cov/src/revert_trace.ts +++ b/packages/sol-cov/src/revert_trace.ts @@ -3,7 +3,7 @@ import { OpCode, StructLog } from 'ethereum-types'; import * as _ from 'lodash'; -import { EvmCallStack, EvmCallStackEntry } from './types'; +import { EvmCallStack } from './types'; import { utils } from './utils'; export function getRevertTrace(structLogs: StructLog[], startAddress: string): EvmCallStack { diff --git a/packages/sol-cov/src/revert_trace_subprovider.ts b/packages/sol-cov/src/revert_trace_subprovider.ts index 1889f13c4..68e752aee 100644 --- a/packages/sol-cov/src/revert_trace_subprovider.ts +++ b/packages/sol-cov/src/revert_trace_subprovider.ts @@ -117,14 +117,14 @@ export class RevertTraceSubprovider extends Subprovider { if (_.isNull(err)) { const toAddress = _.isUndefined(txData.to) || txData.to === NULL_ADDRESS ? constants.NEW_CONTRACT : txData.to; - await this._recordTxTraceAsync(toAddress, txData.data, txHash as string); + await this._recordTxTraceAsync(toAddress, txHash as string); } else { const latestBlock = await this._web3Wrapper.getBlockWithTransactionDataAsync(BlockParamLiteral.Latest); const transactions = latestBlock.transactions; for (const transaction of transactions) { const toAddress = _.isUndefined(txData.to) || txData.to === NULL_ADDRESS ? constants.NEW_CONTRACT : txData.to; - await this._recordTxTraceAsync(toAddress, transaction.input, transaction.hash); + await this._recordTxTraceAsync(toAddress, transaction.hash); } } if (!txData.isFakeTransaction) { @@ -143,7 +143,7 @@ export class RevertTraceSubprovider extends Subprovider { await this._recordCallOrGasEstimateTraceAsync(callData); cb(); } - private async _recordTxTraceAsync(address: string, data: string | undefined, txHash: string): Promise<void> { + private async _recordTxTraceAsync(address: string, txHash: string): Promise<void> { await this._web3Wrapper.awaitTransactionMinedAsync(txHash, 0); const trace = await this._web3Wrapper.getTransactionTraceAsync(txHash, { disableMemory: true, |