Skip to content

Commit eb1e48e

Browse files
svyatonikbkchr
authored andcommitted
pub use WeightInfo in Grandpa + Messsages pallets (#1370)
1 parent 14b27a0 commit eb1e48e

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

bridges/modules/grandpa/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@
3636
// Runtime-generated enums
3737
#![allow(clippy::large_enum_variant)]
3838

39-
use crate::weights::WeightInfo;
40-
4139
use bp_header_chain::{justification::GrandpaJustification, InitializationData};
4240
use bp_runtime::{BlockNumberOf, Chain, HashOf, HasherOf, HeaderOf};
4341
use finality_grandpa::voter_set::VoterSet;
@@ -58,6 +56,7 @@ pub mod benchmarking;
5856

5957
// Re-export in crate namespace for `construct_runtime!`
6058
pub use pallet::*;
59+
pub use weights::WeightInfo;
6160

6261
/// Block number of the bridged chain.
6362
pub type BridgedBlockNumber<T, I> = BlockNumberOf<<T as Config<I>>::BridgedChain>;

bridges/modules/messages/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@
3737
// Generated by `decl_event!`
3838
#![allow(clippy::unused_unit)]
3939

40-
pub use crate::weights_ext::{
40+
pub use weights::WeightInfo;
41+
pub use weights_ext::{
4142
ensure_able_to_receive_confirmation, ensure_able_to_receive_message,
4243
ensure_weights_are_correct, WeightInfoExt, EXPECTED_DEFAULT_MESSAGE_LENGTH,
4344
};
4445

4546
use crate::{
4647
inbound_lane::{InboundLane, InboundLaneStorage, ReceivalResult},
4748
outbound_lane::{OutboundLane, OutboundLaneStorage, ReceivalConfirmationResult},
48-
weights::WeightInfo,
4949
};
5050

5151
use bp_messages::{

0 commit comments

Comments
 (0)