From 1a6fe8be0e1f60427073b3a456b6a9c2af1484c8 Mon Sep 17 00:00:00 2001 From: Daniel Shiposha Date: Tue, 06 Sep 2022 16:06:06 +0000 Subject: [PATCH] fix(xcm): restore AllowTopLevelPaidExecutionFrom --- --- a/runtime/quartz/src/xcm_barrier.rs +++ b/runtime/quartz/src/xcm_barrier.rs @@ -14,11 +14,15 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -use frame_support::{match_types, parameter_types, traits::Get}; +use frame_support::{ + match_types, parameter_types, + traits::{Get, Everything}, +}; use sp_std::{vec, vec::Vec}; use xcm::v1::{BodyId, Junction::*, Junctions::*, MultiLocation}; use xcm_builder::{ AllowKnownQueryResponses, AllowSubscriptionsFrom, AllowUnpaidExecutionFrom, TakeWeightCredit, + AllowTopLevelPaidExecutionFrom, }; use crate::{ @@ -74,6 +78,7 @@ ), ( TakeWeightCredit, + AllowTopLevelPaidExecutionFrom, // Parent and its exec plurality get free execution AllowUnpaidExecutionFrom, // Expected responses are OK. --- a/runtime/unique/src/xcm_barrier.rs +++ b/runtime/unique/src/xcm_barrier.rs @@ -14,11 +14,15 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -use frame_support::{match_types, parameter_types, traits::Get}; +use frame_support::{ + match_types, parameter_types, + traits::{Get, Everything}, +}; use sp_std::{vec, vec::Vec}; use xcm::v1::{BodyId, Junction::*, Junctions::*, MultiLocation}; use xcm_builder::{ AllowKnownQueryResponses, AllowSubscriptionsFrom, AllowUnpaidExecutionFrom, TakeWeightCredit, + AllowTopLevelPaidExecutionFrom, }; use crate::{ @@ -74,6 +78,7 @@ ), ( TakeWeightCredit, + AllowTopLevelPaidExecutionFrom, // Parent and its exec plurality get free execution AllowUnpaidExecutionFrom, // Expected responses are OK. -- gitstuff