Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/improve gas estimates #399

Merged
merged 10 commits into from
Jan 10, 2025
Prev Previous commit
Next Next commit
continue to pad for v0.6
  • Loading branch information
mouseless0x committed Jan 8, 2025
commit 60a8689182a885d28de94ca82af2b59f29bd6c33
4 changes: 4 additions & 0 deletions src/utils/validation.ts
Original file line number Diff line number Diff line change
@@ -378,6 +378,10 @@ export function calcVerificationGasAndCallGasLimit(

let callGasLimit = maxBigInt(calculatedCallGasLimit, 9000n)

if (isVersion06(userOperation)) {
callGasLimit += 21_000n + 50_000n
}

if (
chainId === baseGoerli.id ||
chainId === baseSepolia.id ||
Loading