-
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
5 changed files
with
42 additions
and
26 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
[package] | ||
name = "bitbox-api" | ||
authors = ["Marko Bencun <[email protected]>"] | ||
version = "0.3.0" | ||
version = "0.3.1" | ||
homepage = "https://bitbox.swiss/" | ||
repository = "https://github.com/digitalbitbox/bitbox-api-rs/" | ||
readme = "README-rust.md" | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.3.1 | ||
0.3.2 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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