Skip to content

Commit

Permalink
Add logs.
Browse files Browse the repository at this point in the history
  • Loading branch information
raress96 committed Nov 27, 2024
1 parent 3769fce commit f754eda
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,8 @@ export class ApprovalsProcessorService {
// In case the gas estimation fails, the transaction will fail on chain, but we will still send it
// for transparency
if (e instanceof GasError) {
this.logger.warn('Could not estimate gas for Gateway transaction...');

transaction.setGasLimit(GasInfo.GatewayDefault.value);
} else {
throw e;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ export class MessageApprovedProcessorService {
// In case the gas estimation fails, the transaction will fail on chain, but we will still send it
// for transparency with the full gas available, but don't try to retry it
if (e instanceof GasError) {
this.logger.warn('Could not estimate gas for execute transaction...');

transaction.setGasLimit(
this.feeHelper.getGasLimitFromEgldFee(BigInt(messageApproved.availableGasBalance), transaction.getData()),
);
Expand Down

0 comments on commit f754eda

Please sign in to comment.