mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-22 05:41:03 +00:00
Reexport paste from sp-runtime in bp-runtime to aviod including paste dependency everywhere (#1556)
* Reexport paste from `sp-runtime` in `bp-runtime` to aviod including `paste` dependency everywhere * Add import `bp_runtime` to macro calls: decl_bridge_finality_runtime_apis/decl_bridge_messages_runtime_apis
This commit is contained in:
committed by
Bastian Köcher
parent
f3a151feeb
commit
793321fcfc
@@ -225,7 +225,7 @@ pub type TransactionEraOf<C> = crate::TransactionEra<BlockNumberOf<C>, HashOf<C>
|
||||
#[macro_export]
|
||||
macro_rules! decl_bridge_finality_runtime_apis {
|
||||
($chain: ident) => {
|
||||
paste::item! {
|
||||
bp_runtime::paste::item! {
|
||||
mod [<$chain _finality_api>] {
|
||||
use super::*;
|
||||
|
||||
@@ -263,7 +263,7 @@ macro_rules! decl_bridge_finality_runtime_apis {
|
||||
#[macro_export]
|
||||
macro_rules! decl_bridge_messages_runtime_apis {
|
||||
($chain: ident) => {
|
||||
paste::item! {
|
||||
bp_runtime::paste::item! {
|
||||
mod [<$chain _messages_api>] {
|
||||
use super::*;
|
||||
|
||||
@@ -339,7 +339,7 @@ macro_rules! decl_bridge_messages_runtime_apis {
|
||||
#[macro_export]
|
||||
macro_rules! decl_bridge_runtime_apis {
|
||||
($chain: ident) => {
|
||||
decl_bridge_finality_runtime_apis!($chain);
|
||||
decl_bridge_messages_runtime_apis!($chain);
|
||||
bp_runtime::decl_bridge_finality_runtime_apis!($chain);
|
||||
bp_runtime::decl_bridge_messages_runtime_apis!($chain);
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user