Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 02501f7

Browse files
gui1117bkchr
authored andcommitted
fix construct_runtime! macro error when no event (#1887)
* fix macro error when no event * update impl version
1 parent f6f4e45 commit 02501f7

File tree

3 files changed

+2
-19
lines changed

3 files changed

+2
-19
lines changed

node/runtime/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
6161
impl_name: create_runtime_str!("substrate-node"),
6262
authoring_version: 10,
6363
spec_version: 30,
64-
impl_version: 32,
64+
impl_version: 33,
6565
apis: RUNTIME_API_VERSIONS,
6666
};
6767

Binary file not shown.

srml/support/src/event.rs

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,6 @@ macro_rules! impl_outer_event {
309309
(
310310
$(#[$attr:meta])*
311311
pub enum $name:ident for $runtime:ident where system = $system:ident {
312-
$module:ident<T>,
313312
$( $rest:tt $( <$t:ident> )*, )*
314313
}
315314
) => {
@@ -319,23 +318,7 @@ macro_rules! impl_outer_event {
319318
$runtime;
320319
$system;
321320
Modules { $( $rest $(<$t>)*, )* };
322-
$module::Event<$runtime>,;
323-
);
324-
};
325-
(
326-
$(#[$attr:meta])*
327-
pub enum $name:ident for $runtime:ident where system = $system:ident {
328-
$module:ident,
329-
$( $rest:tt $( <$t:ident> )*, )*
330-
}
331-
) => {
332-
$crate::impl_outer_event!(
333-
$( #[$attr] )*;
334-
$name;
335-
$runtime;
336-
$system;
337-
Modules { $( $rest $(<$t>)*, )* };
338-
$module::Event,;
321+
;
339322
);
340323
};
341324
(

0 commit comments

Comments
 (0)