From 1b94f4f13f01950780bc19001bbf1bbc05569905 Mon Sep 17 00:00:00 2001 From: Paul Cramer Date: Mon, 10 Jun 2024 10:05:50 -0400 Subject: [PATCH] restore --- src/app/api/paymaster/route.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/app/api/paymaster/route.ts b/src/app/api/paymaster/route.ts index 710cb09..ac195b3 100644 --- a/src/app/api/paymaster/route.ts +++ b/src/app/api/paymaster/route.ts @@ -6,9 +6,7 @@ export async function POST(r: Request) { const method = req.method; const [userOp, entrypoint, chainId] = req.params; - const wrongEntrypoint = "wrong-entrypoint" as string; // should fail - - if (!willSponsor({ chainId: parseInt(chainId), entrypoint: wrongEntrypoint, userOp })) { + if (!willSponsor({ chainId: parseInt(chainId), entrypoint, userOp })) { return Response.json({ error: "Not a sponsorable operation" }); }