Skip to content

Commit 0cf27ce

Browse files
authored
fix: patch ruint with quantity fix (#1518)
1 parent fdff1b0 commit 0cf27ce

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

Cargo.lock

+2-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

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

crates/primitives/src/jsonu256.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,6 @@ mod test {
111111
let data = JsonU256(U256::from(16));
112112
let serialized = serde_json::to_string(&data).unwrap();
113113

114-
assert_eq!(
115-
serialized,
116-
r#""0x0000000000000000000000000000000000000000000000000000000000000010""#
117-
);
114+
assert_eq!(serialized, r#""0x10""#);
118115
}
119116
}

0 commit comments

Comments
 (0)