Skip to content

Commit 1b94f4f

Browse files
committed
restore
1 parent 3211148 commit 1b94f4f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/app/api/paymaster/route.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ export async function POST(r: Request) {
66
const method = req.method;
77
const [userOp, entrypoint, chainId] = req.params;
88

9-
const wrongEntrypoint = "wrong-entrypoint" as string; // should fail
10-
11-
if (!willSponsor({ chainId: parseInt(chainId), entrypoint: wrongEntrypoint, userOp })) {
9+
if (!willSponsor({ chainId: parseInt(chainId), entrypoint, userOp })) {
1210
return Response.json({ error: "Not a sponsorable operation" });
1311
}
1412

0 commit comments

Comments
 (0)