diff --git a/cmd/soroban-cli/src/config/secret.rs b/cmd/soroban-cli/src/config/secret.rs index 995b88723..82008795b 100644 --- a/cmd/soroban-cli/src/config/secret.rs +++ b/cmd/soroban-cli/src/config/secret.rs @@ -50,7 +50,7 @@ pub struct Args { impl Args { pub fn read_key(&self) -> Result { if let Some(public_key) = self.public_key.as_ref() { - return Ok(public_key.parse()?); + return public_key.parse(); }; if let Ok(secret_key) = std::env::var("SOROBAN_SECRET_KEY") { Ok(Key::Secret(Secret::SecretKey { secret_key }))