From e01454ce341d7c3a6d867bb1a504a15cb4be8ca2 Mon Sep 17 00:00:00 2001 From: Svyatoslav Nikolsky Date: Thu, 7 Apr 2022 19:02:23 +0300 Subject: [PATCH] pub use WeightInfo in Grandpa + Messsages pallets (#1370) --- bridges/modules/grandpa/src/lib.rs | 3 +-- bridges/modules/messages/src/lib.rs | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/bridges/modules/grandpa/src/lib.rs b/bridges/modules/grandpa/src/lib.rs index ed5841d75107a..8ff8b34fb88cf 100644 --- a/bridges/modules/grandpa/src/lib.rs +++ b/bridges/modules/grandpa/src/lib.rs @@ -36,8 +36,6 @@ // Runtime-generated enums #![allow(clippy::large_enum_variant)] -use crate::weights::WeightInfo; - use bp_header_chain::{justification::GrandpaJustification, InitializationData}; use bp_runtime::{BlockNumberOf, Chain, HashOf, HasherOf, HeaderOf}; use finality_grandpa::voter_set::VoterSet; @@ -58,6 +56,7 @@ pub mod benchmarking; // Re-export in crate namespace for `construct_runtime!` pub use pallet::*; +pub use weights::WeightInfo; /// Block number of the bridged chain. pub type BridgedBlockNumber = BlockNumberOf<>::BridgedChain>; diff --git a/bridges/modules/messages/src/lib.rs b/bridges/modules/messages/src/lib.rs index a344cedae2411..10cdaae40712c 100644 --- a/bridges/modules/messages/src/lib.rs +++ b/bridges/modules/messages/src/lib.rs @@ -37,7 +37,8 @@ // Generated by `decl_event!` #![allow(clippy::unused_unit)] -pub use crate::weights_ext::{ +pub use weights::WeightInfo; +pub use weights_ext::{ ensure_able_to_receive_confirmation, ensure_able_to_receive_message, ensure_weights_are_correct, WeightInfoExt, EXPECTED_DEFAULT_MESSAGE_LENGTH, }; @@ -45,7 +46,6 @@ pub use crate::weights_ext::{ use crate::{ inbound_lane::{InboundLane, InboundLaneStorage, ReceivalResult}, outbound_lane::{OutboundLane, OutboundLaneStorage, ReceivalConfirmationResult}, - weights::WeightInfo, }; use bp_messages::{