Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
bodrych committed Dec 11, 2023
1 parent 87cea8b commit befcf9f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/model/account/private_key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ impl std::str::FromStr for PrivateKey {

fn from_str(base58string: &str) -> Result<PrivateKey> {
let bytes = Base58::decode(base58string)?;
let bytes_array: [u8; 32] = bytes.try_into().map_err(|e| Error::VectorToArrayConversionError(e))?;
let bytes_array: [u8; 32] = bytes
.try_into()
.map_err(|e| Error::VectorToArrayConversionError(e))?;
PrivateKey::from_bytes(bytes_array)
}
}
Expand Down

0 comments on commit befcf9f

Please sign in to comment.