mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-25 23:31:08 +00:00
Sanitize UniversalLocation witth GlobalConsensus + XCM small nits and improvements (#4238)
This PR: - sanitizes all `UniversalLocation`s with `GlobalConsensus` (when possible) - addressing [comment](https://github.com/paritytech/polkadot-sdk/pull/4025#discussion_r1557361473) - adds `DefaultConfig` for `pallet-xcm-benchmarks` for `system`
This commit is contained in:
@@ -26,6 +26,8 @@ parameter_types! {
|
||||
pub const RelayLocation: Location = Location::parent();
|
||||
pub const RelayNetwork: Option<NetworkId> = None;
|
||||
pub RelayChainOrigin: RuntimeOrigin = cumulus_pallet_xcm::Origin::Relay.into();
|
||||
// For the real deployment, it is recommended to set `RelayNetwork` according to the relay chain
|
||||
// and prepend `UniversalLocation` with `GlobalConsensus(RelayNetwork::get())`.
|
||||
pub UniversalLocation: InteriorLocation = Parachain(ParachainInfo::parachain_id().into()).into();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user