fix construct_runtime! macro error when no event (#1887)

* fix macro error when no event

* update impl version
This commit is contained in:
thiolliere authored and Bastian Köcher committed 2019-02-28 12:01:05 +01:00
1 parent 7c1d1268ef
commit 04fed82940
3 files changed
+2 -19

No files matched your search

+1 -1
View File
@@ -61,7 +61,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
impl_name: create_runtime_str!("substrate-node"),
authoring_version: 10,
spec_version: 30,
impl_version: 32,
impl_version: 33,
apis: RUNTIME_API_VERSIONS,
};
+1 -18
View File
@@ -309,7 +309,6 @@ macro_rules! impl_outer_event {
(
$(#[$attr:meta])*
pub enum $name:ident for $runtime:ident where system = $system:ident {
$module:ident<T>,
$( $rest:tt $( <$t:ident> )*, )*
}
) => {
@@ -319,23 +318,7 @@ macro_rules! impl_outer_event {
$runtime;
$system;
Modules { $( $rest $(<$t>)*, )* };
$module::Event<$runtime>,;
);
};
(
$(#[$attr:meta])*
pub enum $name:ident for $runtime:ident where system = $system:ident {
$module:ident,
$( $rest:tt $( <$t:ident> )*, )*
}
) => {
$crate::impl_outer_event!(
$( #[$attr] )*;
$name;
$runtime;
$system;
Modules { $( $rest $(<$t>)*, )* };
$module::Event,;
;
);
};
(