diff --git a/ethers-contract/ethers-contract-abigen/src/contract/structs.rs b/ethers-contract/ethers-contract-abigen/src/contract/structs.rs index 0f6ef3a1..083b5970 100644 --- a/ethers-contract/ethers-contract-abigen/src/contract/structs.rs +++ b/ethers-contract/ethers-contract-abigen/src/contract/structs.rs @@ -100,7 +100,7 @@ impl Context { }; if is_tuple { - fields.push(ty); + fields.push(quote!(pub #ty)); } else { let field_name = util::safe_ident(&field.name().to_snake_case()); fields.push(quote! { pub #field_name: #ty });