Skip to content

Commit 28b1d32

Browse files
dwightguthehildenb
authored andcommitted
Add parse error to rpc (#445)
* deps/plugin: update submodule * web3: add parse error case
1 parent 12d9018 commit 28b1d32

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

deps/plugin

web3.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ module WEB3
8383
rule <k> #loadRPCCall(_:String #Or null #Or _:Int #Or [ .JSONList ]) => #sendResponse("error": {"code": -32600, "message": "Invalid Request"}) ... </k>
8484
<callid> _ => null </callid>
8585
86+
rule <k> #loadRPCCall(undef) => #sendResponse("error": {"code": -32700, "message": "Parse error"}) ... </k>
87+
<callid> _ => null </callid>
88+
8689
syntax KItem ::= "#loadFromBatch"
8790
// ---------------------------------
8891
rule <k> #loadFromBatch ~> _ => #loadRPCCall(J) </k>

0 commit comments

Comments
 (0)