aboutsummaryrefslogtreecommitdiffstats
path: root/packages/web3-wrapper/src
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/web3-wrapper/src
parentb05a3b7aed9d2dcbc6ce4177eeb7db85675b7a96 (diff)
downloaddexon-sol-tools-f6f2818a02d0ef1880f6e4391840659cc8dc2395.tar
dexon-sol-tools-f6f2818a02d0ef1880f6e4391840659cc8dc2395.tar.gz
dexon-sol-tools-f6f2818a02d0ef1880f6e4391840659cc8dc2395.tar.bz2
dexon-sol-tools-f6f2818a02d0ef1880f6e4391840659cc8dc2395.tar.lz
dexon-sol-tools-f6f2818a02d0ef1880f6e4391840659cc8dc2395.tar.xz
dexon-sol-tools-f6f2818a02d0ef1880f6e4391840659cc8dc2395.tar.zst
dexon-sol-tools-f6f2818a02d0ef1880f6e4391840659cc8dc2395.zip
Change error message for awaitTransactionSuccessAsync
Diffstat (limited to 'packages/web3-wrapper/src')
-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;
}