diff --git a/client/src/client.rs b/client/src/client.rs index 2f809a79..f442f960 100644 --- a/client/src/client.rs +++ b/client/src/client.rs @@ -667,9 +667,9 @@ pub trait RpcApi: Sized { fn import_descriptors( &self, - req: json::ImportDescriptors, + req: &[json::ImportDescriptors], ) -> Result> { - let json_request = vec![serde_json::to_value(req)?]; + let json_request = serde_json::to_value(req)?; self.call("importdescriptors", handle_defaults(&mut [json_request.into()], &[null()])) }