Skip to content

Commit

Permalink
Added receipt to CALL_EXCEPTION errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Aug 20, 2019
1 parent db8c462 commit 724c32e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/providers/src.ts/base-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,8 @@ export class BaseProvider extends Provider {
if (receipt.status === 0) {
logger.throwError("transaction failed", Logger.errors.CALL_EXCEPTION, {
transactionHash: tx.hash,
transaction: tx
transaction: tx,
receipt: receipt
});
}
return receipt;
Expand Down

0 comments on commit 724c32e

Please sign in to comment.