difftreelog
Merge pull request #1038 from UniqueNetwork/fix/xcmv3-settopic-barrier
in: master
3 files changed
runtime/opal/src/xcm_barrier.rsdiffbeforeafterboth18use staging_xcm::latest::{Junctions::*, MultiLocation};18use staging_xcm::latest::{Junctions::*, MultiLocation};19use staging_xcm_builder::{19use staging_xcm_builder::{20 AllowExplicitUnpaidExecutionFrom, AllowTopLevelPaidExecutionFrom, TakeWeightCredit,20 AllowExplicitUnpaidExecutionFrom, AllowTopLevelPaidExecutionFrom, TakeWeightCredit,21 TrailingSetTopicAsId,21};22};222323match_types! {24match_types! {26 };27 };27}28}282929pub type Barrier = (30pub type Barrier = TrailingSetTopicAsId<(30 TakeWeightCredit,31 TakeWeightCredit,31 AllowExplicitUnpaidExecutionFrom<ParentOnly>,32 AllowExplicitUnpaidExecutionFrom<ParentOnly>,32 AllowTopLevelPaidExecutionFrom<Everything>,33 AllowTopLevelPaidExecutionFrom<Everything>,33);34)>;3435runtime/quartz/src/xcm_barrier.rsdiffbeforeafterboth--- a/runtime/quartz/src/xcm_barrier.rs
+++ b/runtime/quartz/src/xcm_barrier.rs
@@ -18,7 +18,7 @@
use staging_xcm::latest::{Junctions::*, MultiLocation};
use staging_xcm_builder::{
AllowExplicitUnpaidExecutionFrom, AllowKnownQueryResponses, AllowSubscriptionsFrom,
- AllowTopLevelPaidExecutionFrom, TakeWeightCredit,
+ AllowTopLevelPaidExecutionFrom, TakeWeightCredit, TrailingSetTopicAsId,
};
use crate::PolkadotXcm;
@@ -34,7 +34,7 @@
};
}
-pub type Barrier = (
+pub type Barrier = TrailingSetTopicAsId<(
TakeWeightCredit,
AllowExplicitUnpaidExecutionFrom<ParentOnly>,
AllowTopLevelPaidExecutionFrom<Everything>,
@@ -42,4 +42,4 @@
AllowKnownQueryResponses<PolkadotXcm>,
// Subscriptions for version tracking are OK.
AllowSubscriptionsFrom<ParentOrSiblings>,
-);
+)>;
runtime/unique/src/xcm_barrier.rsdiffbeforeafterboth--- a/runtime/unique/src/xcm_barrier.rs
+++ b/runtime/unique/src/xcm_barrier.rs
@@ -18,7 +18,7 @@
use staging_xcm::latest::{Junctions::*, MultiLocation};
use staging_xcm_builder::{
AllowExplicitUnpaidExecutionFrom, AllowKnownQueryResponses, AllowSubscriptionsFrom,
- AllowTopLevelPaidExecutionFrom, TakeWeightCredit,
+ AllowTopLevelPaidExecutionFrom, TakeWeightCredit, TrailingSetTopicAsId,
};
use crate::PolkadotXcm;
@@ -34,7 +34,7 @@
};
}
-pub type Barrier = (
+pub type Barrier = TrailingSetTopicAsId<(
TakeWeightCredit,
AllowExplicitUnpaidExecutionFrom<ParentOnly>,
AllowTopLevelPaidExecutionFrom<Everything>,
@@ -42,4 +42,4 @@
AllowKnownQueryResponses<PolkadotXcm>,
// Subscriptions for version tracking are OK.
AllowSubscriptionsFrom<ParentOrSiblings>,
-);
+)>;