diff options
author | Fabio Berger <me@fabioberger.com> | 2018-09-21 18:36:58 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-21 18:36:58 +0800 |
commit | ba59879e7f8f7f1d4f2a328a2f4c9555e148ffd7 (patch) | |
tree | 0d15e99c17e2dab246554e9ee71c8535707e3024 /packages/web3-wrapper/src/web3_wrapper.ts | |
parent | cbd72b6e3d72ba9a6e7c03bdb824949fdb08fcae (diff) | |
parent | c10807c4e35a76a314f1c2e492a5c1410d30777e (diff) | |
download | dexon-sol-tools-ba59879e7f8f7f1d4f2a328a2f4c9555e148ffd7.tar dexon-sol-tools-ba59879e7f8f7f1d4f2a328a2f4c9555e148ffd7.tar.gz dexon-sol-tools-ba59879e7f8f7f1d4f2a328a2f4c9555e148ffd7.tar.bz2 dexon-sol-tools-ba59879e7f8f7f1d4f2a328a2f4c9555e148ffd7.tar.lz dexon-sol-tools-ba59879e7f8f7f1d4f2a328a2f4c9555e148ffd7.tar.xz dexon-sol-tools-ba59879e7f8f7f1d4f2a328a2f4c9555e148ffd7.tar.zst dexon-sol-tools-ba59879e7f8f7f1d4f2a328a2f4c9555e148ffd7.zip |
Merge pull request #1079 from 0xProject/fixAwaitTxMined
Fix awaitTransactionMinedAsync for new Parity version
Diffstat (limited to 'packages/web3-wrapper/src/web3_wrapper.ts')
-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), |