Fix frame_system renaming in contruct_runtime (#4412)

* Fix contruct_runtime

* Update lib.rs

* Update event.rs

* Update event.rs

* Update event.rs

* Update event.rs

* Update event.rs

* Update event.rs

* Update event.rs

Back to where we started

* Update chain_spec.rs

* Update genesis.rs

* Fix it properly
This commit is contained in:
Bastian Köcher
2019-12-17 10:54:50 +01:00
committed by GitHub
parent cd718cd77d
commit e19f5adfb7
4 changed files with 23 additions and 17 deletions
+20 -13
View File
@@ -543,21 +543,28 @@ macro_rules! __impl_outer_event_json_metadata {
}
}
#[allow(dead_code)]
pub fn __module_events_system() -> &'static [$crate::event::EventMetadata] {
system::Event::metadata()
$crate::__impl_outer_event_json_metadata! {
@DECL_MODULE_EVENT_FNS
$system <> ;
$( $module_name < $( $generic_params ),* > $( $instance )? ; )*
}
}
};
$crate::paste::item! {
$(
#[allow(dead_code)]
pub fn [< __module_events_ $module_name $( _ $instance )? >] () ->
&'static [$crate::event::EventMetadata]
{
$module_name::Event ::< $( $generic_params ),* > ::metadata()
}
)*
}
(@DECL_MODULE_EVENT_FNS
$(
$module_name:ident < $( $generic_params:path ),* > $( $instance:ident )? ;
)*
) => {
$crate::paste::item! {
$(
#[allow(dead_code)]
pub fn [< __module_events_ $module_name $( _ $instance )? >] () ->
&'static [$crate::event::EventMetadata]
{
$module_name::Event ::< $( $generic_params ),* > ::metadata()
}
)*
}
}
}