diff --git a/crates/iota-sdk-types/src/address.rs b/crates/iota-sdk-types/src/address.rs index dbbe5dea1..8e6b61291 100644 --- a/crates/iota-sdk-types/src/address.rs +++ b/crates/iota-sdk-types/src/address.rs @@ -244,7 +244,7 @@ impl std::fmt::Display for AddressParseError { write!( f, "Unable to parse Address (must be hex string of length {})", - Address::LENGTH + 2 * Address::LENGTH ) } } diff --git a/crates/iota-sdk-types/src/digest.rs b/crates/iota-sdk-types/src/digest.rs index 8a7451edd..19c0ef432 100644 --- a/crates/iota-sdk-types/src/digest.rs +++ b/crates/iota-sdk-types/src/digest.rs @@ -204,7 +204,7 @@ impl std::fmt::Display for DigestParseError { write!( f, "Unable to parse Digest (must be Base58 string of length {})", - Digest::LENGTH + 44, ) } }