We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3211148 commit 1b94f4fCopy full SHA for 1b94f4f
src/app/api/paymaster/route.ts
@@ -6,9 +6,7 @@ export async function POST(r: Request) {
6
const method = req.method;
7
const [userOp, entrypoint, chainId] = req.params;
8
9
- const wrongEntrypoint = "wrong-entrypoint" as string; // should fail
10
-
11
- if (!willSponsor({ chainId: parseInt(chainId), entrypoint: wrongEntrypoint, userOp })) {
+ if (!willSponsor({ chainId: parseInt(chainId), entrypoint, userOp })) {
12
return Response.json({ error: "Not a sponsorable operation" });
13
}
14
0 commit comments