From 66b95474448718b56cfa17896c238ba31612e1a3 Mon Sep 17 00:00:00 2001 From: Kristof Gazso Date: Mon, 20 Nov 2023 20:52:07 +0100 Subject: [PATCH] fix celo gas estimation --- packages/rpc/src/rpcHandler.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/rpc/src/rpcHandler.ts b/packages/rpc/src/rpcHandler.ts index c734ad2a..28102d5e 100644 --- a/packages/rpc/src/rpcHandler.ts +++ b/packages/rpc/src/rpcHandler.ts @@ -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 }