pub use WeightInfo in Grandpa + Messsages pallets (#1370)

This commit is contained in:
Svyatoslav Nikolsky
2022-04-07 19:02:23 +03:00
committed by Bastian Köcher
parent 14b27a0209
commit eb1e48edba
2 changed files with 3 additions and 4 deletions
+1 -2
View File
@@ -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<T, I> = BlockNumberOf<<T as Config<I>>::BridgedChain>;
+2 -2
View File
@@ -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::{