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

Commit

Permalink
fix: remove reachable dest
Browse files Browse the repository at this point in the history
  • Loading branch information
metricaez committed Feb 14, 2024
1 parent 628f510 commit 44430fe
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 20 deletions.
3 changes: 2 additions & 1 deletion pallets/withdraw-teleport/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ mod benchmarks {
let fee_amount = 1_000;
let asset: MultiAsset = (MultiLocation::new(0, Here), fee_amount.clone()).into();
let recipient = [0u8; 32];
let versioned_dest: VersionedMultiLocation = T::ReachableDest::get()
let reachable_dest: Option<MultiLocation> = Some(Parachain(1000).into());
let versioned_dest: VersionedMultiLocation = reachable_dest
.ok_or(BenchmarkError::Override(BenchmarkResult::from_weight(Weight::MAX)))?
.into();
let versioned_beneficiary: VersionedMultiLocation =
Expand Down
7 changes: 0 additions & 7 deletions pallets/withdraw-teleport/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,11 +207,6 @@ parameter_types! {
pub static AdvertisedXcmVersion: XcmVersion = 3;
}

#[cfg(feature = "runtime-benchmarks")]
parameter_types! {
pub ReachableDest: Option<MultiLocation> = Some(Parachain(1000).into());
}

impl pallet_xcm::Config for Test {
type RuntimeEvent = RuntimeEvent;
type SendXcmOrigin = xcm_builder::EnsureXcmOrigin<RuntimeOrigin, LocalOriginToLocation>;
Expand All @@ -235,8 +230,6 @@ impl pallet_xcm::Config for Test {
type MaxRemoteLockConsumers = frame_support::traits::ConstU32<0>;
type RemoteLockConsumerIdentifier = ();
type WeightInfo = TestWeightInfo;
#[cfg(feature = "runtime-benchmarks")]
type ReachableDest = ReachableDest;
type AdminOrigin = EnsureRoot<AccountId>;
}

Expand Down
6 changes: 0 additions & 6 deletions runtime/stout/src/xcm_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -306,10 +306,6 @@ pub type XcmRouter = (
XcmpQueue,
);

#[cfg(feature = "runtime-benchmarks")]
parameter_types! {
pub ReachableDest: Option<MultiLocation> = Some(Parent.into());
}

impl pallet_xcm::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
Expand All @@ -333,8 +329,6 @@ impl pallet_xcm::Config for Runtime {
type UniversalLocation = UniversalLocation;
// TODO: pallet-xcm weights
type WeightInfo = pallet_xcm::TestWeightInfo;
#[cfg(feature = "runtime-benchmarks")]
type ReachableDest = ReachableDest;
type AdminOrigin = EnsureRoot<AccountId>;
type MaxRemoteLockConsumers = ConstU32<0>;
type RemoteLockConsumerIdentifier = ();
Expand Down
6 changes: 0 additions & 6 deletions runtime/trappist/src/xcm_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -378,10 +378,6 @@ pub type XcmRouter = (
XcmpQueue,
);

#[cfg(feature = "runtime-benchmarks")]
parameter_types! {
pub ReachableDest: Option<MultiLocation> = Some(Parent.into());
}

impl pallet_xcm::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
Expand Down Expand Up @@ -410,8 +406,6 @@ impl pallet_xcm::Config for Runtime {
type UniversalLocation = UniversalLocation;
// TODO: pallet-xcm weights
type WeightInfo = pallet_xcm::TestWeightInfo;
#[cfg(feature = "runtime-benchmarks")]
type ReachableDest = ReachableDest;
type AdminOrigin = EnsureRoot<AccountId>;
type MaxRemoteLockConsumers = ConstU32<0>;
type RemoteLockConsumerIdentifier = ();
Expand Down

0 comments on commit 44430fe

Please sign in to comment.