mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 11:07:56 +00:00
Proposal: Flatten AllPallets and similar types (#11813)
* flratten AllPallets types * feature flag it * fix * fix * fmt * remove todo * Update frame/support/src/traits/metadata.rs Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com> * Update frame/support/src/migrations.rs Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com> * fix * mark as deprecated * add docs * fix ui test? * fmt Co-authored-by: parity-processbot <> Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
This commit is contained in:
@@ -2207,7 +2207,7 @@ macro_rules! decl_module {
|
||||
for $mod_type<$trait_instance $(, $instance)?> where $( $other_where_bounds )*
|
||||
{
|
||||
fn count() -> usize { 1 }
|
||||
fn accumulate(acc: &mut $crate::sp_std::vec::Vec<$crate::traits::PalletInfoData>) {
|
||||
fn infos() -> $crate::sp_std::vec::Vec<$crate::traits::PalletInfoData> {
|
||||
use $crate::traits::PalletInfoAccess;
|
||||
let item = $crate::traits::PalletInfoData {
|
||||
index: Self::index(),
|
||||
@@ -2215,7 +2215,7 @@ macro_rules! decl_module {
|
||||
module_name: Self::module_name(),
|
||||
crate_version: Self::crate_version(),
|
||||
};
|
||||
acc.push(item);
|
||||
vec![item]
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user