Skip to content

Commit

Permalink
fix: PR review
Browse files Browse the repository at this point in the history
  • Loading branch information
willemneal authored and gitbutler-client committed Dec 2, 2024
1 parent a64aae5 commit 102bc13
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/soroban-cli/src/config/key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ use crate::xdr;

#[derive(thiserror::Error, Debug)]
pub enum Error {
#[error("failed to extract public key from secret")]
#[error("failed to extract secret from public key ")]
SecretPublicKey,
#[error(transparent)]
Secret(#[from] secret::Error),
#[error(transparent)]
StrKey(#[from] stellar_strkey::DecodeError),
#[error("failed to parse key {0}")]
Parse(String),
#[error("failed to parse key")]
Parse,
}

#[derive(Debug, Serialize, Deserialize, PartialEq, Eq)]
Expand Down Expand Up @@ -68,7 +68,7 @@ impl FromStr for Key {
if let Ok(muxed_account) = s.parse() {
return Ok(Key::MuxedAccount { muxed_account });
}
Err(Error::Parse(s.to_owned()))
Err(Error::Parse)
}
}

Expand Down

0 comments on commit 102bc13

Please sign in to comment.