Skip to content

Commit

Permalink
make storage-n-map fields public too (paritytech#404)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsdw authored and 0623forbidden committed Feb 15, 2022
1 parent 0e76ca1 commit e4e85bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codegen/src/api/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ fn generate_storage_entry_fns(
fields.iter().map(|(_, field_type)| field_type);
let field_names = fields.iter().map(|(field_name, _)| field_name);
let entry_struct = quote! {
pub struct #entry_struct_ident( #( #tuple_struct_fields ),* );
pub struct #entry_struct_ident( #( pub #tuple_struct_fields ),* );
};
let constructor =
quote!( #entry_struct_ident( #( #field_names ),* ) );
Expand Down

0 comments on commit e4e85bc

Please sign in to comment.