diff options
author | Fabio Berger <me@fabioberger.com> | 2018-09-21 17:56:31 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-09-21 17:56:31 +0800 |
commit | 4e8ec2359d0f3842411d752fcfe966d540b10178 (patch) | |
tree | 5479924510e6955c5a1c3625b6a4f749c4d2c655 /packages/web3-wrapper/src | |
parent | cbd72b6e3d72ba9a6e7c03bdb824949fdb08fcae (diff) | |
download | dexon-0x-contracts-4e8ec2359d0f3842411d752fcfe966d540b10178.tar dexon-0x-contracts-4e8ec2359d0f3842411d752fcfe966d540b10178.tar.gz dexon-0x-contracts-4e8ec2359d0f3842411d752fcfe966d540b10178.tar.bz2 dexon-0x-contracts-4e8ec2359d0f3842411d752fcfe966d540b10178.tar.lz dexon-0x-contracts-4e8ec2359d0f3842411d752fcfe966d540b10178.tar.xz dexon-0x-contracts-4e8ec2359d0f3842411d752fcfe966d540b10178.tar.zst dexon-0x-contracts-4e8ec2359d0f3842411d752fcfe966d540b10178.zip |
Also make sure the transactionReceipt contains a blockNumber when checking if a transaction has been mined.
Diffstat (limited to 'packages/web3-wrapper/src')
-rw-r--r-- | packages/web3-wrapper/src/web3_wrapper.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/web3-wrapper/src/web3_wrapper.ts b/packages/web3-wrapper/src/web3_wrapper.ts index ea78f8801..af0fe3a72 100644 --- a/packages/web3-wrapper/src/web3_wrapper.ts +++ b/packages/web3-wrapper/src/web3_wrapper.ts @@ -539,7 +539,7 @@ export class Web3Wrapper { } // Immediately check if the transaction has already been mined. let transactionReceipt = await this.getTransactionReceiptAsync(txHash); - if (!_.isNull(transactionReceipt)) { + if (!_.isNull(transactionReceipt) && !_.isNull(transactionReceipt.blockNumber)) { const logsWithDecodedArgs = _.map( transactionReceipt.logs, this.abiDecoder.tryToDecodeLogOrNoop.bind(this.abiDecoder), |