diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-05-24 04:45:40 +0800 |
---|---|---|
committer | Alex Browne <stephenalexbrowne@gmail.com> | 2018-05-24 06:09:19 +0800 |
commit | f6f2818a02d0ef1880f6e4391840659cc8dc2395 (patch) | |
tree | 5b9f9e81e996e937f4feb1c54d06ddb3b0cc939b /packages/web3-wrapper | |
parent | b05a3b7aed9d2dcbc6ce4177eeb7db85675b7a96 (diff) | |
download | dexon-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')
-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 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; } |