Skip to content

Commit

Permalink
chore(wallet): fix lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
scarmuega committed Dec 3, 2023
1 parent bd4ff8a commit 0fed40f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pallas-wallet/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ impl Bip32PrivateKey {
pub fn from_bech32(bech32: String) -> Result<Self, Error> {
let (hrp, data, _) = bech32::decode(&bech32).map_err(Error::InvalidBech32)?;
if hrp != Self::BECH32_HRP {
return Err(Error::InvalidBech32Hrp);
Err(Error::InvalidBech32Hrp)
} else {
let data = Vec::<u8>::from_base32(&data).map_err(Error::InvalidBech32)?;
Self::from_bytes(data.try_into().map_err(|_| Error::UnexpectedBech32Length)?)
Expand Down Expand Up @@ -166,7 +166,7 @@ impl Bip32PublicKey {
pub fn from_bech32(bech32: String) -> Result<Self, Error> {
let (hrp, data, _) = bech32::decode(&bech32).map_err(Error::InvalidBech32)?;
if hrp != Self::BECH32_HRP {
return Err(Error::InvalidBech32Hrp);
Err(Error::InvalidBech32Hrp)
} else {
let data = Vec::<u8>::from_base32(&data).map_err(Error::InvalidBech32)?;
Ok(Self::from_bytes(
Expand Down

0 comments on commit 0fed40f

Please sign in to comment.