-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
eth: parse uneven hex uints correctly
"0x1" and similar failed parsing for uint8, uint16, ... because we used `hex::decode()` which fails for uneven strings. We instead use the `BigUint::parse_bytes()` which is more appropriate as the hex string encodes an uint and correctly handles leading zeroes.
- Loading branch information
Showing
1 changed file
with
38 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters