Skip to content

Commit e2d1d59

Browse files
committed
primitives - Cargo.toml - use the optimized eth_checksum
1 parent 0c216c9 commit e2d1d59

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

Cargo.lock

Lines changed: 10 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

primitives/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ time = "0.1.42"
2525
hex = "0.3.2"
2626
merkletree = "0.10.0"
2727
tiny-keccak = "1.5"
28-
eth_checksum = "0.1.1"
28+
eth_checksum = { version = "0.1.1", git = "https://github.com/elpiel/rust-eth-checksum", branch = "clean-up-and-performance" }
2929
# Numbers - BigNum, Numbers, Traits and Derives
3030
num-bigint = { version = "0.2", features = ["serde"] }
3131
num = "0.2.0"

primitives/src/big_num.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ impl TryFrom<&str> for BigNum {
195195

196196
fn try_from(num: &str) -> Result<Self, Self::Error> {
197197
let big_uint = BigUint::from_str(&num)
198-
.map_err(|err| super::DomainError::InvalidArgument(err.description().to_string()))?;
198+
.map_err(|err| super::DomainError::InvalidArgument(err.to_string()))?;
199199

200200
Ok(Self(big_uint))
201201
}

0 commit comments

Comments
 (0)