Skip to content

Commit

Permalink
override estimate values for hedera chainType
Browse files Browse the repository at this point in the history
  • Loading branch information
mouseless-eth committed Oct 10, 2024
1 parent e6679b1 commit b2a51d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rpc/rpcHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ import {
slice,
toFunctionSelector
} from "viem"
import { base, baseSepolia, hedera, optimism } from "viem/chains"
import { base, baseSepolia, optimism } from "viem/chains"
import type { NonceQueuer } from "./nonceQueuer"

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

if (this.chainId === hedera.id) {
if (this.chainType === "hedera") {
// The eth_call gasLimit is set to 12_500_000 on Hedera.
userOperation.verificationGasLimit = 5_000_000n
userOperation.callGasLimit = 4_500_000n
Expand Down

0 comments on commit b2a51d3

Please sign in to comment.