fix: patch ruint with quantity fix (#1518)

This commit is contained in:
Matthias Seitz
2023-02-22 23:24:45 +01:00
committed by GitHub
parent fdff1b0f02
commit 0cf27ce8e8
3 changed files with 5 additions and 8 deletions

6
Cargo.lock generated
View File

@@ -5244,8 +5244,7 @@ dependencies = [
[[package]]
name = "ruint"
version = "1.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0ad3a104dc8c3867f653b0fec89c65e00b0ceb752718ad282177a7e0f33257ac"
source = "git+https://github.com/mattsse/uint?branch=matt/skip-leading-zeros#7aa078a0d3ea5a05c09e7a2b42c06921d55e7c67"
dependencies = [
"arbitrary",
"derive_more",
@@ -5261,8 +5260,7 @@ dependencies = [
[[package]]
name = "ruint-macro"
version = "1.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "62cc5760263ea229d367e7dff3c0cbf09e4797a125bd87059a6c095804f3b2d1"
source = "git+https://github.com/mattsse/uint?branch=matt/skip-leading-zeros#7aa078a0d3ea5a05c09e7a2b42c06921d55e7c67"
[[package]]
name = "rustc-demangle"

View File

@@ -41,3 +41,5 @@ default-members = ["bin/reth"]
[patch.crates-io]
revm = { git = "https://github.com/bluealloy/revm" }
revm-primitives = { git = "https://github.com/bluealloy/revm" }
# patched for quantity U256 responses <https://github.com/recmo/uint/issues/224>
ruint = { git = "https://github.com/mattsse/uint", branch = "matt/skip-leading-zeros" }

View File

@@ -111,9 +111,6 @@ mod test {
let data = JsonU256(U256::from(16));
let serialized = serde_json::to_string(&data).unwrap();
assert_eq!(
serialized,
r#""0x0000000000000000000000000000000000000000000000000000000000000010""#
);
assert_eq!(serialized, r#""0x10""#);
}
}