mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 11:38:01 +00:00
Carry over where clauses defined in Config to Call and Hook (#12388)
This commit is contained in:
@@ -32,7 +32,7 @@ pub fn expand_call(def: &mut Def) -> proc_macro2::TokenStream {
|
||||
|
||||
(span, where_clause, methods, docs)
|
||||
},
|
||||
None => (def.item.span(), None, Vec::new(), Vec::new()),
|
||||
None => (def.item.span(), def.config.where_clause.clone(), Vec::new(), Vec::new()),
|
||||
};
|
||||
let frame_support = &def.frame_support;
|
||||
let frame_system = &def.frame_system;
|
||||
|
||||
@@ -26,7 +26,7 @@ pub fn expand_hooks(def: &mut Def) -> proc_macro2::TokenStream {
|
||||
let has_runtime_upgrade = hooks.has_runtime_upgrade;
|
||||
(where_clause, span, has_runtime_upgrade)
|
||||
},
|
||||
None => (None, def.pallet_struct.attr_span, false),
|
||||
None => (def.config.where_clause.clone(), def.pallet_struct.attr_span, false),
|
||||
};
|
||||
|
||||
let frame_support = &def.frame_support;
|
||||
|
||||
Reference in New Issue
Block a user