diff --git a/crates/icepick/src/cli/mod.rs b/crates/icepick/src/cli/mod.rs index ff5b64b..5d90a2b 100644 --- a/crates/icepick/src/cli/mod.rs +++ b/crates/icepick/src/cli/mod.rs @@ -23,6 +23,9 @@ pub fn derive_keys( path_prefix: &DerivationPath, accounts: &[DerivationIndex], ) -> Vec> { + if accounts.is_empty() { + return vec![]; + } let mut derived_keys = vec![]; let mut client = keyforkd_client::Client::discover_socket().expect("keyforkd started"); for account in accounts {