Skip to content

Commit

Permalink
add magic constants
Browse files Browse the repository at this point in the history
  • Loading branch information
mouseless0x committed Oct 4, 2024
1 parent da726cc commit f225908
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/utils/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -367,11 +367,8 @@ export function calcVerificationGasAndCallGasLimit(
callDataResult?.gasUsed ??
executionResult.paid / gasPrice - executionResult.preOpGas

let callGasLimit = maxBigInt(calculatedCallGasLimit, 9000n)

if (isVersion06(userOperation)) {
callGasLimit += 21_000n + 50_000n
}
let callGasLimit =
maxBigInt(calculatedCallGasLimit, 9000n) + 21_000n + 50_000n

if (
chainId === baseGoerli.id ||
Expand Down

0 comments on commit f225908

Please sign in to comment.