From cf0d8e84fa42c713e134ae3e354f998ee0281361 Mon Sep 17 00:00:00 2001 From: Nando Vieira Date: Wed, 12 Jun 2024 10:33:00 -0700 Subject: [PATCH] Name the argument explicitly. --- cmd/soroban-cli/src/commands/config/alias.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cmd/soroban-cli/src/commands/config/alias.rs b/cmd/soroban-cli/src/commands/config/alias.rs index 13ba2f2ee..5de4d912e 100644 --- a/cmd/soroban-cli/src/commands/config/alias.rs +++ b/cmd/soroban-cli/src/commands/config/alias.rs @@ -93,12 +93,13 @@ impl Data { } pub fn load_contract_id_or_default( - alias: &str, + alias_or_contract_id: &str, config_dir: &Path, network_passphrase: &str, ) -> Result<[u8; 32], Error> { - let contract_id = Self::get_contract_id(alias, config_dir, network_passphrase)? - .unwrap_or_else(|| alias.to_string()); + let contract_id = + Self::get_contract_id(alias_or_contract_id, config_dir, network_passphrase)? + .unwrap_or_else(|| alias_or_contract_id.to_string()); soroban_spec_tools::utils::contract_id_from_str(&contract_id) .map_err(|e| Error::CannotParseContractId(contract_id.clone(), e))