From a677c3a9a0ea692abc69ef7095927af7e10da636 Mon Sep 17 00:00:00 2001 From: chriseth Date: Thu, 29 Dec 2022 14:52:17 +0100 Subject: [PATCH] Fix u256 parsing. --- src/types/u256.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types/u256.rs b/src/types/u256.rs index 8f778cc..8223f10 100644 --- a/src/types/u256.rs +++ b/src/types/u256.rs @@ -89,7 +89,7 @@ impl From<&str> for U256 { let high_hex = &item[high_start..low_start]; // disallow + and - prefixes assert!( - high_hex.as_bytes().first() != Some(&54) + high_hex.as_bytes().first() != Some(&45) && high_hex.as_bytes().first() != Some(&43) ); let high = if high_hex.is_empty() {