Response implementation of Deserialize
is not general enough
#1105
aniketfuryrocks
started this conversation in
JSONRPC migration guide
Replies: 1 comment
-
The simple fix is to do: let expected = r#"{"jsonrpc":"2.0", "error": { "code": -32003, "message": "Transaction signature verification failure"},"id":1}"#
let value: jsonrpsee::types::Response<()> = serde_json::from_str(expected).unwrap(); I think that value must be borrowed in the You could open an issue for this as this is too complicated to get right but ideally you shouldn't need to use/allocate |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
@niklasad1 I am porting tests here
with jsonrpc
https://github.com/blockworks-foundation/solana/blob/bd782634dcd39d267381a55e7a8c5d52ab314292/rpc/src/rpc.rs#L5914
now
error
Beta Was this translation helpful? Give feedback.
All reactions