From 04fed82940b37efd416e84768af58ac84c8a66ab Mon Sep 17 00:00:00 2001 From: thiolliere <gui.thiolliere@gmail.com> Date: Thu, 28 Feb 2019 12:01:05 +0100 Subject: [PATCH] fix construct_runtime! macro error when no event (#1887) * fix macro error when no event * update impl version --- substrate/node/runtime/src/lib.rs | 2 +- .../release/node_runtime.compact.wasm | Bin 822150 -> 822150 bytes substrate/srml/support/src/event.rs | 19 +----------------- 3 files changed, 2 insertions(+), 19 deletions(-) diff --git a/substrate/node/runtime/src/lib.rs b/substrate/node/runtime/src/lib.rs index 56ac26b4e8e..86736b9bb65 100644 --- a/substrate/node/runtime/src/lib.rs +++ b/substrate/node/runtime/src/lib.rs @@ -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, }; diff --git a/substrate/node/runtime/wasm/target/wasm32-unknown-unknown/release/node_runtime.compact.wasm b/substrate/node/runtime/wasm/target/wasm32-unknown-unknown/release/node_runtime.compact.wasm index 01b649f54664e128570ed745c5d8828cac2440a4..8c016749da6a23bbc3e2edc71d746d0ee12c6911 100644 GIT binary patch delta 51 zcmZphZqzp2sG)_ig{g(Pg{6hHg>4J_x*A5s_VqRFK+FNeoIuP4#N6B0*YI5D0|4!< B6U_hs delta 51 zcmZphZqzp2sG)_ig{g(Pg{6hHg>4J_x*A4>_VqRFK+FNeoIuP4#N6B0*YI5D0|4!k B6U+br diff --git a/substrate/srml/support/src/event.rs b/substrate/srml/support/src/event.rs index aa438c22f91..093effc2e4e 100644 --- a/substrate/srml/support/src/event.rs +++ b/substrate/srml/support/src/event.rs @@ -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,; + ; ); }; ( -- GitLab