Skip to content

Commit

Permalink
fix: update formatting for fixed bytes (#8687)
Browse files Browse the repository at this point in the history
* fix: update formatting for fixed bytes

* fix: update formatting for fixed bytes
  • Loading branch information
klkvr authored Aug 17, 2024
1 parent f8aa4af commit 0bb5864
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
5 changes: 0 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,6 @@ alloy-eips = { version = "0.2.1", default-features = false }
alloy-genesis = { version = "0.2.1", default-features = false }
alloy-json-rpc = { version = "0.2.1", default-features = false }
alloy-network = { version = "0.2.1", default-features = false }
alloy-node-bindings = { version = "0.2.1", default-features = false }
alloy-provider = { version = "0.2.1", default-features = false }
alloy-pubsub = { version = "0.2.1", default-features = false }
alloy-rpc-client = { version = "0.2.1", default-features = false }
Expand Down Expand Up @@ -272,7 +271,6 @@ alloy-eips = { git = "https://github.com/alloy-rs/alloy", rev = "511ae98" }
alloy-genesis = { git = "https://github.com/alloy-rs/alloy", rev = "511ae98" }
alloy-json-rpc = { git = "https://github.com/alloy-rs/alloy", rev = "511ae98" }
alloy-network = { git = "https://github.com/alloy-rs/alloy", rev = "511ae98" }
alloy-node-bindings = { git = "https://github.com/alloy-rs/alloy", rev = "511ae98" }
alloy-provider = { git = "https://github.com/alloy-rs/alloy", rev = "511ae98" }
alloy-pubsub = { git = "https://github.com/alloy-rs/alloy", rev = "511ae98" }
alloy-rpc-client = { git = "https://github.com/alloy-rs/alloy", rev = "511ae98" }
Expand Down
4 changes: 3 additions & 1 deletion crates/common/fmt/src/dynamic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ impl DynValueFormatter {
DynSolValue::Address(inner) => write!(f, "{inner}"),
DynSolValue::Function(inner) => write!(f, "{inner}"),
DynSolValue::Bytes(inner) => f.write_str(&hex::encode_prefixed(inner)),
DynSolValue::FixedBytes(inner, _) => write!(f, "{inner}"),
DynSolValue::FixedBytes(word, size) => {
f.write_str(&hex::encode_prefixed(&word[..*size]))
}
DynSolValue::Uint(inner, _) => {
if self.raw {
write!(f, "{inner}")
Expand Down

0 comments on commit 0bb5864

Please sign in to comment.