Skip to content

Commit 7099e33

Browse files
authored
fix: infer addresses in unknown fields in UIfmt (#12552)
1 parent 91acb9e commit 7099e33

File tree

1 file changed

+2
-0
lines changed
  • crates/common/fmt/src

1 file changed

+2
-0
lines changed

crates/common/fmt/src/ui.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -783,6 +783,7 @@ impl<T: UIfmt> UIfmt for WithOtherFields<T> {
783783
#[expect(missing_docs)]
784784
pub enum EthValue {
785785
U64(U64),
786+
Address(Address),
786787
U256(U256),
787788
U64Array(Vec<U64>),
788789
U256Array(Vec<U256>),
@@ -800,6 +801,7 @@ impl UIfmt for EthValue {
800801
match self {
801802
Self::U64(num) => num.pretty(),
802803
Self::U256(num) => num.pretty(),
804+
Self::Address(addr) => addr.pretty(),
803805
Self::U64Array(arr) => arr.pretty(),
804806
Self::U256Array(arr) => arr.pretty(),
805807
Self::Other(val) => val.to_string().trim_matches('"').to_string(),

0 commit comments

Comments
 (0)