Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kristofgazso committed Nov 9, 2023
1 parent d1bcfbe commit 7fab79d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/rpc/src/rpcHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,15 @@ export class RpcHandler implements IRpcEndpoint {
let callGasLimit: bigint

if (this.noEthCallOverrideSupport) {
userOperation.preVerificationGas = 1_000_000n
userOperation.verificationGasLimit = 10_000_000n
userOperation.callGasLimit = 10_000_000n

if (this.chainId === 84531 || this.chainId === 8453) {
userOperation.verificationGasLimit = 1_000_000n
userOperation.callGasLimit = 1_000_000n
}

const executionResult = await this.validator.getExecutionResult(userOperation)

verificationGasLimit = ((executionResult.preOpGas - userOperation.preVerificationGas) * 3n) / 2n
Expand Down

0 comments on commit 7fab79d

Please sign in to comment.