Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rhlsthrm committed Jun 20, 2021
1 parent b46594e commit e8e1d85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/engine/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export async function withdrawRetryForTransferId(
const tx = await chainService.sendWithdrawTx(channel, commitment.getSignedTransaction());
if (tx.isError) {
logger.error(
{ method, methodId, error: tx.getError()?.toJson(), commitment },
{ method, methodId, error: tx.getError() ? jsonifyError(tx.getError()!) : undefined, commitment },
"Error in chainService.sendWithdrawTx",
);
}
Expand Down Expand Up @@ -223,7 +223,7 @@ export async function submitUnsubmittedWithdrawals(
);
if (withdrawInfo.isError) {
logger.error(
{ method, methodId, error: withdrawInfo.getError()?.toJson() },
{ method, methodId, error: withdrawInfo.getError() ? jsonifyError(withdrawInfo.getError()!) : undefined },
"Error in chainService.getRegisteredTransferByName",
);
}
Expand Down

0 comments on commit e8e1d85

Please sign in to comment.