Skip to content

Commit 21493b5

Browse files
committed
Sanitize UniversalLocation witth GlobalConsensus paritytech#4238
1 parent 62f89dc commit 21493b5

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

polkadot/xcm/xcm-simulator/example/src/parachain/xcm_config/constants.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ parameter_types! {
2626
parameter_types! {
2727
pub const KsmLocation: Location = Location::parent();
2828
pub const RelayNetwork: NetworkId = NetworkId::Kusama;
29-
pub UniversalLocation: InteriorLocation = Parachain(MsgQueue::parachain_id().into()).into();
29+
pub UniversalLocation: InteriorLocation = [GlobalConsensus(RelayNetwork::get()), Parachain(MsgQueue::parachain_id().into())].into();
3030
}

polkadot/xcm/xcm-simulator/example/src/relay_chain/xcm_config/constants.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ parameter_types! {
2626
parameter_types! {
2727
pub const TokenLocation: Location = Here.into_location();
2828
pub RelayNetwork: NetworkId = ByGenesis([0; 32]);
29-
pub UniversalLocation: InteriorLocation = Here;
29+
pub UniversalLocation: InteriorLocation = RelayNetwork::get().into();
3030
pub UnitWeightCost: u64 = 1_000;
3131
}

0 commit comments

Comments
 (0)