From 6ecc6f7a72b3e4480f2e57ca91fec714efdd2f37 Mon Sep 17 00:00:00 2001 From: mouseless <97399882+mouseless-eth@users.noreply.github.com> Date: Fri, 7 Feb 2025 13:57:54 +0000 Subject: [PATCH] throw error if failed to add to mempool --- src/rpc/rpcHandler.ts | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/rpc/rpcHandler.ts b/src/rpc/rpcHandler.ts index d7089699..f0add14c 100644 --- a/src/rpc/rpcHandler.ts +++ b/src/rpc/rpcHandler.ts @@ -822,15 +822,7 @@ export class RpcHandler implements IRpcEndpoint { this.ensureEntryPointIsSupported(entryPoint) await this.validateEip7702Auth(userOperation) - try { - await this.addToMempoolIfValid( - userOperation, - entryPoint, - apiVersion - ) - } catch (e) { - this.logger.error(e) - } + await this.addToMempoolIfValid(userOperation, entryPoint, apiVersion) return getUserOperationHash( userOperation,