Skip to content
Snippets Groups Projects
Commit 04fed829 authored by thiolliere's avatar thiolliere Committed by Bastian Köcher
Browse files

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

* fix macro error when no event

* update impl version
parent 7c1d1268
Branches
No related merge requests found
......@@ -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,
};
......
No preview for this file type
......@@ -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,;
;
);
};
(
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment