diff options
author | Leonid <logvinov.leon@gmail.com> | 2017-11-23 02:02:31 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-23 02:02:31 +0800 |
commit | 0e03ef385b03f5b2f916f38001553b1c1c18c383 (patch) | |
tree | 441b43cdfd5965312a27f41e7f9c91823cc45e2e /packages/0x.js/src/web3_wrapper.ts | |
parent | 66750f7349435dbcdb783a214e21800466ec3ac1 (diff) | |
parent | ac2c723ec9044589ad6495f4fd915db1f9eda3a7 (diff) | |
download | dexon-sol-tools-0e03ef385b03f5b2f916f38001553b1c1c18c383.tar dexon-sol-tools-0e03ef385b03f5b2f916f38001553b1c1c18c383.tar.gz dexon-sol-tools-0e03ef385b03f5b2f916f38001553b1c1c18c383.tar.bz2 dexon-sol-tools-0e03ef385b03f5b2f916f38001553b1c1c18c383.tar.lz dexon-sol-tools-0e03ef385b03f5b2f916f38001553b1c1c18c383.tar.xz dexon-sol-tools-0e03ef385b03f5b2f916f38001553b1c1c18c383.tar.zst dexon-sol-tools-0e03ef385b03f5b2f916f38001553b1c1c18c383.zip |
Merge pull request #227 from 0xProject/feature/orderExpired
Add expirationWatcher
Diffstat (limited to 'packages/0x.js/src/web3_wrapper.ts')
-rw-r--r-- | packages/0x.js/src/web3_wrapper.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/0x.js/src/web3_wrapper.ts b/packages/0x.js/src/web3_wrapper.ts index f6b6ca09a..7bd8ea093 100644 --- a/packages/0x.js/src/web3_wrapper.ts +++ b/packages/0x.js/src/web3_wrapper.ts @@ -50,7 +50,9 @@ export class Web3Wrapper { } public async getTransactionReceiptAsync(txHash: string): Promise<TransactionReceipt> { const transactionReceipt = await promisify(this.web3.eth.getTransactionReceipt)(txHash); - transactionReceipt.status = this.normalizeTxReceiptStatus(transactionReceipt.status); + if (!_.isNull(transactionReceipt)) { + transactionReceipt.status = this.normalizeTxReceiptStatus(transactionReceipt.status); + } return transactionReceipt; } public getCurrentProvider(): Web3.Provider { |