aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/src/utils/exchange_wrapper.ts
diff options
context:
space:
mode:
authorAlex Browne <stephenalexbrowne@gmail.com>2018-05-24 09:12:41 +0800
committerGitHub <noreply@github.com>2018-05-24 09:12:41 +0800
commit2f7ab3e32d1c54f42c435503426bc421fa89afd8 (patch)
treedfa0fb838fb4b1bdb36a45eaa820351bfaf1f04f /packages/contracts/src/utils/exchange_wrapper.ts
parent2f1a4042bf924cf5d07d724d5d1a1c0a2c181f4f (diff)
parentf6f2818a02d0ef1880f6e4391840659cc8dc2395 (diff)
downloaddexon-0x-contracts-2f7ab3e32d1c54f42c435503426bc421fa89afd8.tar.gz
dexon-0x-contracts-2f7ab3e32d1c54f42c435503426bc421fa89afd8.tar.zst
dexon-0x-contracts-2f7ab3e32d1c54f42c435503426bc421fa89afd8.zip
Merge pull request #613 from 0xProject/check-tx-receipt-status
Check transaction receipt status
Diffstat (limited to 'packages/contracts/src/utils/exchange_wrapper.ts')
-rw-r--r--packages/contracts/src/utils/exchange_wrapper.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/contracts/src/utils/exchange_wrapper.ts b/packages/contracts/src/utils/exchange_wrapper.ts
index 0d0977ab8..c353442f3 100644
--- a/packages/contracts/src/utils/exchange_wrapper.ts
+++ b/packages/contracts/src/utils/exchange_wrapper.ts
@@ -247,7 +247,7 @@ export class ExchangeWrapper {
return tx;
}
private async _getTxWithDecodedExchangeLogsAsync(txHash: string): Promise<TransactionReceiptWithDecodedLogs> {
- const tx = await this._web3Wrapper.awaitTransactionMinedAsync(txHash, constants.AWAIT_TRANSACTION_MINED_MS);
+ const tx = await this._web3Wrapper.awaitTransactionSuccessAsync(txHash, constants.AWAIT_TRANSACTION_MINED_MS);
tx.logs = _.filter(tx.logs, log => log.address === this._exchange.address);
tx.logs = _.map(tx.logs, log => this._logDecoder.decodeLogOrThrow(log));
return tx;