Skip to content

Commit

Permalink
fix PrivateKey from_str
Browse files Browse the repository at this point in the history
  • Loading branch information
bodrych committed Dec 11, 2023
1 parent befcf9f commit b06d42c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/model/account/private_key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ impl std::str::FromStr for PrivateKey {
let bytes = Base58::decode(base58string)?;
let bytes_array: [u8; 32] = bytes
.try_into()
.map_err(|e| Error::VectorToArrayConversionError(e))?;
.map_err(Error::VectorToArrayConversionError)?;
PrivateKey::from_bytes(bytes_array)
}
}
Expand Down

0 comments on commit b06d42c

Please sign in to comment.