Skip to content

Commit

Permalink
fix wallet deserialize
Browse files Browse the repository at this point in the history
  • Loading branch information
SWvheerden committed Jul 24, 2024
1 parent 65567d5 commit a828d43
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion base_layer/common_types/src/tari_address/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,8 @@ impl TariAddress {

/// Construct Tari Address from hex
pub fn from_base58(hex_str: &str) -> Result<TariAddress, TariAddressError> {
if hex_str.len() < 47 {
if hex_str.len() < 45 {
dbg!(hex_str.len());
return Err(TariAddressError::InvalidSize);
}
let result = panic::catch_unwind(|| hex_str.split_at(2));
Expand Down

0 comments on commit a828d43

Please sign in to comment.