From 1d2d3c81f70195690b1836138ac13e8d2cde7231 Mon Sep 17 00:00:00 2001 From: Daniel Shiposha Date: Mon, 13 Nov 2023 18:49:33 +0000 Subject: [PATCH] fix: use XCM barriers - pass SetTopic(ID) --- --- a/runtime/opal/src/xcm_barrier.rs +++ b/runtime/opal/src/xcm_barrier.rs @@ -18,6 +18,7 @@ use staging_xcm::latest::{Junctions::*, MultiLocation}; use staging_xcm_builder::{ AllowExplicitUnpaidExecutionFrom, AllowTopLevelPaidExecutionFrom, TakeWeightCredit, + TrailingSetTopicAsId, }; match_types! { @@ -26,8 +27,8 @@ }; } -pub type Barrier = ( +pub type Barrier = TrailingSetTopicAsId<( TakeWeightCredit, AllowExplicitUnpaidExecutionFrom, AllowTopLevelPaidExecutionFrom, -); +)>; --- 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, AllowTopLevelPaidExecutionFrom, @@ -42,4 +42,4 @@ AllowKnownQueryResponses, // Subscriptions for version tracking are OK. AllowSubscriptionsFrom, -); +)>; --- 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, AllowTopLevelPaidExecutionFrom, @@ -42,4 +42,4 @@ AllowKnownQueryResponses, // Subscriptions for version tracking are OK. AllowSubscriptionsFrom, -); +)>; -- gitstuff