Skip to content

Commit 0bb5864

Browse files
authored
fix: update formatting for fixed bytes (#8687)
* fix: update formatting for fixed bytes * fix: update formatting for fixed bytes
1 parent f8aa4af commit 0bb5864

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

Cargo.lock

Lines changed: 0 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,6 @@ alloy-eips = { version = "0.2.1", default-features = false }
178178
alloy-genesis = { version = "0.2.1", default-features = false }
179179
alloy-json-rpc = { version = "0.2.1", default-features = false }
180180
alloy-network = { version = "0.2.1", default-features = false }
181-
alloy-node-bindings = { version = "0.2.1", default-features = false }
182181
alloy-provider = { version = "0.2.1", default-features = false }
183182
alloy-pubsub = { version = "0.2.1", default-features = false }
184183
alloy-rpc-client = { version = "0.2.1", default-features = false }
@@ -272,7 +271,6 @@ alloy-eips = { git = "https://github.com/alloy-rs/alloy", rev = "511ae98" }
272271
alloy-genesis = { git = "https://github.com/alloy-rs/alloy", rev = "511ae98" }
273272
alloy-json-rpc = { git = "https://github.com/alloy-rs/alloy", rev = "511ae98" }
274273
alloy-network = { git = "https://github.com/alloy-rs/alloy", rev = "511ae98" }
275-
alloy-node-bindings = { git = "https://github.com/alloy-rs/alloy", rev = "511ae98" }
276274
alloy-provider = { git = "https://github.com/alloy-rs/alloy", rev = "511ae98" }
277275
alloy-pubsub = { git = "https://github.com/alloy-rs/alloy", rev = "511ae98" }
278276
alloy-rpc-client = { git = "https://github.com/alloy-rs/alloy", rev = "511ae98" }

crates/common/fmt/src/dynamic.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ impl DynValueFormatter {
1515
DynSolValue::Address(inner) => write!(f, "{inner}"),
1616
DynSolValue::Function(inner) => write!(f, "{inner}"),
1717
DynSolValue::Bytes(inner) => f.write_str(&hex::encode_prefixed(inner)),
18-
DynSolValue::FixedBytes(inner, _) => write!(f, "{inner}"),
18+
DynSolValue::FixedBytes(word, size) => {
19+
f.write_str(&hex::encode_prefixed(&word[..*size]))
20+
}
1921
DynSolValue::Uint(inner, _) => {
2022
if self.raw {
2123
write!(f, "{inner}")

0 commit comments

Comments
 (0)