Unverified Commit 610f635a authored by Artem Vorotnikov's avatar Artem Vorotnikov Committed by GitHub
Browse files

Fix client generation with param_kind = map (#805)

parent 18a44498
Pipeline #200068 passed with stages
in 8 minutes and 20 seconds
......@@ -156,6 +156,7 @@ impl RpcDescription {
});
match param_kind {
ParamKind::Map => {
let jsonrpsee = self.jsonrpsee_client_path.as_ref().unwrap();
// Extract parameter names.
let param_names = extract_param_names(&signature.sig);
// Combine parameter names and values into tuples.
......@@ -165,7 +166,7 @@ impl RpcDescription {
quote! { (#param, #value) }
});
quote! {
Some(types::ParamsSer::Map(
Some(#jsonrpsee::types::ParamsSer::Map(
std::collections::BTreeMap::<&str, #serde_json::Value>::from(
[#(#params),*]
)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment