fix: use debug fmt for nested arrays (#527)
This commit is contained in:
parent
dbd3929b74
commit
b072b05515
|
@ -78,7 +78,7 @@ pub(crate) fn derive_eth_display_impl(input: DeriveInput) -> Result<TokenStream,
|
|||
quote! {
|
||||
write!(f, "[")?;
|
||||
for (idx, val) in self.#ident.iter().enumerate() {
|
||||
write!(f, "{}", val)?;
|
||||
write!(f, "{:?}", val)?;
|
||||
if idx < self.#ident.len() - 1 {
|
||||
write!(f, ", ")?;
|
||||
}
|
||||
|
|
|
@ -441,6 +441,8 @@ fn can_derive_ethcall() {
|
|||
i: I256,
|
||||
arr_u8: [u8; 32],
|
||||
arr_u16: [u16; 32],
|
||||
nested_arr: [[u8; 32]; 2],
|
||||
double_nested: [[[u8; 32]; 2]; 3],
|
||||
v: Vec<u8>,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue