Skip to content

Commit

Permalink
throw error if failed to add to mempool
Browse files Browse the repository at this point in the history
  • Loading branch information
mouseless0x committed Feb 7, 2025
1 parent 4838e45 commit 6ecc6f7
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/rpc/rpcHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6ecc6f7

Please sign in to comment.