Skip to content

Commit c427fb4

Browse files
committed
fix: server rpc proxy
1 parent 7eefa5d commit c427fb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ async function expressServer() {
6363
});
6464
app.post("/rpc", async (req: Request, res: Response) => {
6565
const { method } = req.body;
66-
if (!method.startsWith("eth_") && method == "net_version") {
66+
if (!method.startsWith("eth_") && method != "net_version") {
6767
console.log("Invalid method:", method);
6868
res.status(403).send({ error: "Method not allowed" });
6969
return;

0 commit comments

Comments
 (0)