Skip to content

Commit

Permalink
Remove import and use directly
Browse files Browse the repository at this point in the history
  • Loading branch information
bkontur committed Mar 20, 2024
1 parent dc9e6bc commit 3cf807a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
9 changes: 2 additions & 7 deletions system-parachains/bridge-hubs/bridge-hub-kusama/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@ use frame_system::{
use pallet_xcm::{EnsureXcm, IsVoiceOfBody};
pub use sp_consensus_aura::sr25519::AuthorityId as AuraId;
pub use sp_runtime::{MultiAddress, Perbill, Permill};
#[cfg(not(feature = "runtime-benchmarks"))]
use xcm_config::XcmRouter;
use xcm_config::{
FellowshipLocation, GovernanceLocation, TreasuryAccount, XcmOriginToTransactDispatchOrigin,
};
Expand All @@ -95,9 +93,6 @@ use system_parachains_constants::{
// XCM Imports
use xcm::prelude::*;

#[cfg(feature = "runtime-benchmarks")]
use benchmark_helpers::DoNothingRouter;

/// The address format for describing accounts.
pub type Address = MultiAddress<AccountId, ()>;

Expand Down Expand Up @@ -553,9 +548,9 @@ impl snowbridge_pallet_inbound_queue::Config for Runtime {
type Verifier = snowbridge_pallet_ethereum_client::Pallet<Runtime>;
type Token = Balances;
#[cfg(not(feature = "runtime-benchmarks"))]
type XcmSender = XcmRouter;
type XcmSender = xcm_config::XcmRouter;
#[cfg(feature = "runtime-benchmarks")]
type XcmSender = DoNothingRouter;
type XcmSender = benchmark_helpers::DoNothingRouter;
type ChannelLookup = EthereumSystem;
type GatewayAddress = EthereumGatewayAddress;
#[cfg(feature = "runtime-benchmarks")]
Expand Down
9 changes: 2 additions & 7 deletions system-parachains/bridge-hubs/bridge-hub-polkadot/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@ use frame_system::{
use pallet_xcm::{EnsureXcm, IsVoiceOfBody};
pub use sp_consensus_aura::sr25519::AuthorityId as AuraId;
pub use sp_runtime::{MultiAddress, Perbill, Permill};
#[cfg(not(feature = "runtime-benchmarks"))]
use xcm_config::XcmRouter;
use xcm_config::{
FellowshipLocation, GovernanceLocation, TreasuryAccount, XcmOriginToTransactDispatchOrigin,
};
Expand All @@ -96,9 +94,6 @@ use system_parachains_constants::{
// XCM Imports
use xcm::prelude::*;

#[cfg(feature = "runtime-benchmarks")]
use benchmark_helpers::DoNothingRouter;

/// The address format for describing accounts.
pub type Address = MultiAddress<AccountId, ()>;

Expand Down Expand Up @@ -554,9 +549,9 @@ impl snowbridge_pallet_inbound_queue::Config for Runtime {
type Verifier = snowbridge_pallet_ethereum_client::Pallet<Runtime>;
type Token = Balances;
#[cfg(not(feature = "runtime-benchmarks"))]
type XcmSender = XcmRouter;
type XcmSender = xcm_config::XcmRouter;
#[cfg(feature = "runtime-benchmarks")]
type XcmSender = DoNothingRouter;
type XcmSender = benchmark_helpers::DoNothingRouter;
type ChannelLookup = EthereumSystem;
type GatewayAddress = EthereumGatewayAddress;
#[cfg(feature = "runtime-benchmarks")]
Expand Down

0 comments on commit 3cf807a

Please sign in to comment.