Skip to content

Commit

Permalink
Allow importing multiple descriptors at a time
Browse files Browse the repository at this point in the history
  • Loading branch information
casey committed Nov 12, 2024
1 parent 06a6c15 commit acadbc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -667,9 +667,9 @@ pub trait RpcApi: Sized {

fn import_descriptors(
&self,
req: json::ImportDescriptors,
req: &[json::ImportDescriptors],
) -> Result<Vec<json::ImportMultiResult>> {
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()]))
}

Expand Down

0 comments on commit acadbc5

Please sign in to comment.