Skip to content

Commit

Permalink
restore
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcramer committed Jun 10, 2024
1 parent 3211148 commit 1b94f4f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/app/api/paymaster/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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" });
}

Expand Down

0 comments on commit 1b94f4f

Please sign in to comment.