Skip to content

Commit

Permalink
fix celo gas estimation
Browse files Browse the repository at this point in the history
  • Loading branch information
kristofgazso committed Nov 20, 2023
1 parent 60489d2 commit 66b9547
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/rpc/src/rpcHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,12 @@ export class RpcHandler implements IRpcEndpoint {
userOperation.verificationGasLimit = 10_000_000n
userOperation.callGasLimit = 10_000_000n

if (this.chainId === 84531 || this.chainId === 8453 || this.chainId === chains.celoAlfajores.id) {
if (
this.chainId === 84531 ||
this.chainId === 8453 ||
this.chainId === chains.celoAlfajores.id ||
this.chainId === chains.celo.id
) {
userOperation.verificationGasLimit = 1_000_000n
userOperation.callGasLimit = 1_000_000n
}
Expand Down

0 comments on commit 66b9547

Please sign in to comment.