You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PR #1032 introduced a jsonrpsee client for the ledger RPC API, but it's missing ledger_getEvents. Unfortunately, jsonrpsee's rpc macro is not flexible enough to allow for the kind of parameter serialization logic that we need for this method. All we need is a Vec<EventIdentifier> e.g. "params": [1, 2, 42], but jsonrpsee serializes the event_ids as "params": [[1, 2, 42]].
The solution seems to be replacing the rpc macro -generated trait RpcClient and replacing it with a hand-written one, which correctly serializes all parameter types.
The text was updated successfully, but these errors were encountered:
PR #1032 introduced a
jsonrpsee
client for the ledger RPC API, but it's missingledger_getEvents
. Unfortunately,jsonrpsee
'srpc
macro is not flexible enough to allow for the kind of parameter serialization logic that we need for this method. All we need is aVec<EventIdentifier>
e.g."params": [1, 2, 42]
, butjsonrpsee
serializes theevent_ids
as"params": [[1, 2, 42]]
.The solution seems to be replacing the
rpc
macro -generated traitRpcClient
and replacing it with a hand-written one, which correctly serializes all parameter types.The text was updated successfully, but these errors were encountered: