diff --git a/cmd/soroban-cli/src/config/locator.rs b/cmd/soroban-cli/src/config/locator.rs index 930da0ece..e769f1314 100644 --- a/cmd/soroban-cli/src/config/locator.rs +++ b/cmd/soroban-cli/src/config/locator.rs @@ -179,7 +179,7 @@ impl Args { self.write_key(name, &public_key.into()) } - pub fn write_key(&self, name: &str, public_key: &Key) -> Result<(), Error> { + pub fn write_key(&self, name: &str, key: &Key) -> Result<(), Error> { KeyType::Identity.write(name, public_key, &self.config_dir()?) }