Fix u256 parsing.

This commit is contained in:
chriseth 2022-12-29 14:52:17 +01:00
parent 3965958f70
commit a677c3a9a0

View file

@ -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() {