Skip to content

Commit

Permalink
larger approval fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
awisniew207 committed Feb 5, 2025
1 parent eee4204 commit 77b9d62
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export const estimateGasLimit = async (
return gasLimit;
} catch (error) {
console.error('Error estimating gas:', error);
const fallbackGas = isApproval ? '50000' : '300000';
const fallbackGas = isApproval ? '100000' : '300000';
console.log(`Failed to estimate gas. Using fallback gas limit: ${fallbackGas}`);
return ethers.BigNumber.from(fallbackGas);
}
Expand Down

0 comments on commit 77b9d62

Please sign in to comment.