From acadbc5ea753e61d806a4a925e759a736ce4078a Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Mon, 11 Nov 2024 16:11:16 -0800 Subject: [PATCH] Allow importing multiple descriptors at a time --- client/src/client.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()])) }