aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorAlex Browne <stephenalexbrowne@gmail.com>2018-05-24 04:45:40 +0800
committerAlex Browne <stephenalexbrowne@gmail.com>2018-05-24 06:09:19 +0800
commitf6f2818a02d0ef1880f6e4391840659cc8dc2395 (patch)
tree5b9f9e81e996e937f4feb1c54d06ddb3b0cc939b /packages
parentb05a3b7aed9d2dcbc6ce4177eeb7db85675b7a96 (diff)
downloaddexon-0x-contracts-f6f2818a02d0ef1880f6e4391840659cc8dc2395.tar.gz
dexon-0x-contracts-f6f2818a02d0ef1880f6e4391840659cc8dc2395.tar.zst
dexon-0x-contracts-f6f2818a02d0ef1880f6e4391840659cc8dc2395.zip
Change error message for awaitTransactionSuccessAsync
Diffstat (limited to 'packages')
-rw-r--r--packages/web3-wrapper/src/web3_wrapper.ts2
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 6ab63ab1b..40a554522 100644
--- a/packages/web3-wrapper/src/web3_wrapper.ts
+++ b/packages/web3-wrapper/src/web3_wrapper.ts
@@ -399,7 +399,7 @@ export class Web3Wrapper {
): Promise<TransactionReceiptWithDecodedLogs> {
const receipt = await this.awaitTransactionMinedAsync(txHash, pollingIntervalMs, timeoutMs);
if (receipt.status !== 1) {
- throw new Error('Transaction failed (transaction receipt did not have a status of 1)');
+ throw new Error(`Transaction failed: ${txHash}`);
}
return receipt;
}