From 8ecd566930b61663898d3f9ef3293e3f14143923 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Fri, 27 Jan 2023 19:07:27 +0100 Subject: [PATCH] fix: add missing pub for tuple structs (#2080) --- ethers-contract/ethers-contract-abigen/src/contract/structs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 });