Fix u256 parsing.
This commit is contained in:
parent
3965958f70
commit
a677c3a9a0
1 changed files with 1 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue