mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 05:11:02 +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:
@@ -187,7 +187,7 @@ pub fn forward_id_for(original_id: &XcmHash) -> XcmHash {
|
||||
/// end with the `SetTopic` instruction.
|
||||
///
|
||||
/// In the case that the message ends with a `SetTopic(T)` (as should be the case if the top-level
|
||||
/// router is `EnsureUniqueTopic`), then the forwarding message (i.e. the one carrying the
|
||||
/// router is `WithUniqueTopic`), then the forwarding message (i.e. the one carrying the
|
||||
/// export instruction *to* the bridge in local consensus) will also end with a `SetTopic` whose
|
||||
/// inner is `forward_id_for(T)`. If this is not the case then the onward message will not be given
|
||||
/// the `SetTopic` afterword.
|
||||
@@ -254,7 +254,7 @@ impl<Bridges: ExporterFor, Router: SendXcm, UniversalLocation: Get<InteriorLocat
|
||||
/// end with the `SetTopic` instruction.
|
||||
///
|
||||
/// In the case that the message ends with a `SetTopic(T)` (as should be the case if the top-level
|
||||
/// router is `EnsureUniqueTopic`), then the forwarding message (i.e. the one carrying the
|
||||
/// router is `WithUniqueTopic`), then the forwarding message (i.e. the one carrying the
|
||||
/// export instruction *to* the bridge in local consensus) will also end with a `SetTopic` whose
|
||||
/// inner is `forward_id_for(T)`. If this is not the case then the onward message will not be given
|
||||
/// the `SetTopic` afterword.
|
||||
|
||||
@@ -137,7 +137,7 @@ impl configuration::Config for Runtime {
|
||||
parameter_types! {
|
||||
pub const KsmLocation: Location = Location::here();
|
||||
pub const KusamaNetwork: NetworkId = NetworkId::Kusama;
|
||||
pub UniversalLocation: InteriorLocation = Here;
|
||||
pub UniversalLocation: InteriorLocation = KusamaNetwork::get().into();
|
||||
pub CheckAccount: (AccountId, MintLocation) = (XcmPallet::check_account(), MintLocation::Local);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user