diff --git a/cmd/soroban-cli/src/commands/tx/args.rs b/cmd/soroban-cli/src/commands/tx/args.rs index c00da6fea..8c0ebb387 100644 --- a/cmd/soroban-cli/src/commands/tx/args.rs +++ b/cmd/soroban-cli/src/commands/tx/args.rs @@ -113,11 +113,11 @@ impl Args { Ok(self.config.source_account()?) } - pub fn reslove_muxed_address(&self, address: &Address) -> Result { + pub fn resolve_muxed_address(&self, address: &Address) -> Result { Ok(address.resolve_muxed_account(&self.config.locator, self.config.hd_path)?) } - pub fn reslove_account_id(&self, address: &Address) -> Result { + pub fn resolve_account_id(&self, address: &Address) -> Result { Ok(address .resolve_muxed_account(&self.config.locator, self.config.hd_path)? .account_id()) diff --git a/cmd/soroban-cli/src/config/locator.rs b/cmd/soroban-cli/src/config/locator.rs index 68a95f628..930da0ece 100644 --- a/cmd/soroban-cli/src/config/locator.rs +++ b/cmd/soroban-cli/src/config/locator.rs @@ -257,7 +257,7 @@ impl Args { } } - pub fn get_private_key(&self, key_or_name: &str) -> Result { + pub fn get_secret_key(&self, key_or_name: &str) -> Result { match self.read_key(key_or_name)? { Key::Secret(s) => Ok(s), _ => Err(Error::SecretKeyOnly(key_or_name.to_string())),