Skip to content

Commit

Permalink
add RPC handlers for new tests
Browse files Browse the repository at this point in the history
  • Loading branch information
etan-status committed Apr 25, 2024
1 parent a67ba4d commit b7c2993
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/helpers/handlers.nim
Original file line number Diff line number Diff line change
Expand Up @@ -153,3 +153,11 @@ proc installHandlers*(server: RpcServer) =
if x != "-1".JsonString:
res = decodeFromString(x, seq[byte])
return res.RlpEncodedBytes

server.rpc("eth_blobBaseFee") do(x: JsonString) -> Quantity:
if x != "-1".JsonString:
return decodeFromString(x, Quantity)

server.rpc("eth_getLogs") do(x: JsonString, filterOptions: FilterOptions) -> seq[LogObject]:
if x != "-1".JsonString:
return decodeFromString(x, seq[LogObject])

0 comments on commit b7c2993

Please sign in to comment.