Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Commit

Permalink
remove duplicated trait
Browse files Browse the repository at this point in the history
  • Loading branch information
alistair-singh committed Nov 1, 2023
1 parent ebe8baf commit 2dd39ad
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ use xcm::latest::prelude::*;
use weights::{BlockExecutionWeight, ExtrinsicBaseWeight, RocksDbWeight};

#[cfg(not(feature = "runtime-benchmarks"))]
use crate::xcm_config::AllowSiblingsOnly;
use crate::{
bridge_hub_rococo_config::BridgeRefundBridgeHubWococoMessages,
bridge_hub_wococo_config::BridgeRefundBridgeHubRococoMessages, xcm_config::XcmRouter,
Expand Down Expand Up @@ -620,7 +619,7 @@ impl snowbridge_control::Config for Runtime {
type OwnParaId = ParachainInfo;
type OutboundQueue = EthereumOutboundQueue;
type MessageHasher = BlakeTwo256;
type SiblingOrigin = EnsureXcm<AllowSiblingsOnly>;
type SiblingOrigin = EnsureXcm<snowbridge_control::AllowSiblingsOnly>;
type AgentIdOf = xcm_config::AgentIdOf;
type TreasuryAccount = TreasuryAccount;
type Token = Balances;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -491,17 +491,6 @@ impl ExportXcm for BridgeHubRococoOrBridgeHubWococoSwitchExporter {
}
}

pub struct AllowSiblingsOnly;
impl Contains<MultiLocation> for AllowSiblingsOnly {
fn contains(location: &MultiLocation) -> bool {
if let MultiLocation { parents: 1, interior: X1(Parachain(_)) } = location {
true
} else {
false
}
}
}

/// A `HandleFee` implementation that simply deposits the fees for `ExportMessage` XCM instructions
/// into the accounts that are used for paying the relayer rewards.
/// Burns the fees in case of a failure.
Expand Down

0 comments on commit 2dd39ad

Please sign in to comment.