Change error message for awaitTransactionSuccessAsync

This commit is contained in:
Alex Browne
2018-05-23 13:45:40 -07:00
parent b05a3b7aed
commit f6f2818a02

View File

@@ -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;
}