Skip to content

Commit

Permalink
Merge pull request #294 from pimlicolabs/celo-fix
Browse files Browse the repository at this point in the history
remove celo specific callGasLimit
  • Loading branch information
plusminushalf authored Sep 17, 2024
2 parents 9d7417a + 1953519 commit cee0e09
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/rpc/rpcHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ import {
slice,
toFunctionSelector
} from "viem"
import { base, celoAlfajores, celo, baseSepolia, optimism } from "viem/chains"
import { base, baseSepolia, optimism } from "viem/chains"
import type { NonceQueuer } from "./nonceQueuer"

export interface IRpcEndpoint {
Expand Down Expand Up @@ -364,11 +364,6 @@ export class RpcHandler implements IRpcEndpoint {
userOperation.verificationGasLimit = 5_000_000n
}

if (this.chainId === celoAlfajores.id || this.chainId === celo.id) {
userOperation.verificationGasLimit = 1_000_000n
userOperation.callGasLimit = 1_000_000n
}

if (isVersion07(userOperation)) {
userOperation.paymasterPostOpGasLimit = 2_000_000n
userOperation.paymasterVerificationGasLimit = 5_000_000n
Expand Down

0 comments on commit cee0e09

Please sign in to comment.