mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-25 07:05:44 +00:00
fix construct_runtime! macro error when no event (#1887)
* fix macro error when no event * update impl version
This commit is contained in:
committed by
Bastian Köcher
parent
7c1d1268ef
commit
04fed82940
@@ -61,7 +61,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
|
|||||||
impl_name: create_runtime_str!("substrate-node"),
|
impl_name: create_runtime_str!("substrate-node"),
|
||||||
authoring_version: 10,
|
authoring_version: 10,
|
||||||
spec_version: 30,
|
spec_version: 30,
|
||||||
impl_version: 32,
|
impl_version: 33,
|
||||||
apis: RUNTIME_API_VERSIONS,
|
apis: RUNTIME_API_VERSIONS,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
BIN
Binary file not shown.
@@ -309,7 +309,6 @@ macro_rules! impl_outer_event {
|
|||||||
(
|
(
|
||||||
$(#[$attr:meta])*
|
$(#[$attr:meta])*
|
||||||
pub enum $name:ident for $runtime:ident where system = $system:ident {
|
pub enum $name:ident for $runtime:ident where system = $system:ident {
|
||||||
$module:ident<T>,
|
|
||||||
$( $rest:tt $( <$t:ident> )*, )*
|
$( $rest:tt $( <$t:ident> )*, )*
|
||||||
}
|
}
|
||||||
) => {
|
) => {
|
||||||
@@ -319,23 +318,7 @@ macro_rules! impl_outer_event {
|
|||||||
$runtime;
|
$runtime;
|
||||||
$system;
|
$system;
|
||||||
Modules { $( $rest $(<$t>)*, )* };
|
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,;
|
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
(
|
(
|
||||||
|
|||||||
Reference in New Issue
Block a user