mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-24 11:21:08 +00:00
make storage-n-map fields public too (#404)
This commit is contained in:
@@ -120,7 +120,7 @@ fn generate_storage_entry_fns(
|
|||||||
fields.iter().map(|(_, field_type)| field_type);
|
fields.iter().map(|(_, field_type)| field_type);
|
||||||
let field_names = fields.iter().map(|(field_name, _)| field_name);
|
let field_names = fields.iter().map(|(field_name, _)| field_name);
|
||||||
let entry_struct = quote! {
|
let entry_struct = quote! {
|
||||||
pub struct #entry_struct_ident( #( #tuple_struct_fields ),* );
|
pub struct #entry_struct_ident( #( pub #tuple_struct_fields ),* );
|
||||||
};
|
};
|
||||||
let constructor =
|
let constructor =
|
||||||
quote!( #entry_struct_ident( #( #field_names ),* ) );
|
quote!( #entry_struct_ident( #( #field_names ),* ) );
|
||||||
|
|||||||
Reference in New Issue
Block a user