From b06d42c283267df0349623ac98a2875c86732675 Mon Sep 17 00:00:00 2001 From: Artem Badrtdinov Date: Mon, 11 Dec 2023 18:03:41 +0500 Subject: [PATCH] fix PrivateKey from_str --- src/model/account/private_key.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/model/account/private_key.rs b/src/model/account/private_key.rs index 707cebd..ea3cd72 100644 --- a/src/model/account/private_key.rs +++ b/src/model/account/private_key.rs @@ -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) } }