diff --git a/substrate/node/runtime/src/lib.rs b/substrate/node/runtime/src/lib.rs index 15b81b4cc5..67a5b450a9 100644 --- a/substrate/node/runtime/src/lib.rs +++ b/substrate/node/runtime/src/lib.rs @@ -247,7 +247,7 @@ construct_runtime!( NodeBlock = node_primitives::Block, UncheckedExtrinsic = UncheckedExtrinsic { - System: system::{default, Config}, + System: system, Aura: aura::{Module, Config, Inherent(Timestamp)}, Timestamp: timestamp::{Module, Call, Storage, Config, Inherent}, Indices: indices, @@ -261,7 +261,7 @@ construct_runtime!( FinalityTracker: finality_tracker::{Module, Call, Inherent}, Grandpa: grandpa::{Module, Call, Storage, Config, Event}, Treasury: treasury, - Contract: contract::{Module, Call, Storage, Config, Event}, + Contract: contract, Sudo: sudo, } ); diff --git a/substrate/srml/support/src/runtime.rs b/substrate/srml/support/src/runtime.rs index 27955f2f51..6bccac0d4e 100644 --- a/substrate/srml/support/src/runtime.rs +++ b/substrate/srml/support/src/runtime.rs @@ -109,7 +109,8 @@ macro_rules! construct_runtime { ) => { $crate::construct_runtime!( { $( $preset )* }; - { $( $expanded )* $name: $module::{Module, Call, Storage, Event, Config}, }; + { $( $expanded )* }; + $name: $module::{default}, $( $rest )* ); }; @@ -117,27 +118,25 @@ macro_rules! construct_runtime { { $( $preset:tt )* }; { $( $expanded:tt )* }; $name:ident: $module:ident::{ - default, - $( + default + $(, $modules:ident $( <$modules_generic:ident $(, $modules_instance:ident)?> )* $( ( $( $modules_args:ident ),* ) )* - ),* + )* }, $( $rest:tt )* ) => { $crate::construct_runtime!( { $( $preset )* }; - { - $( $expanded )* - $name: $module::{ - Module, Call, Storage, Event, Config, - $( - $modules $( <$modules_generic $(, $modules_instance)?> )* - $( ( $( $modules_args ),* ) )* - ),* - }, - }; + { $( $expanded )* }; + $name: $module::{ + Module, Call, Storage, Event, Config + $(, + $modules $( <$modules_generic $(, $modules_instance)?> )* + $( ( $( $modules_args ),* ) )* + )* + }, $( $rest )* ); };