From e0c98a46d28ef67ef796194f71a1c8a0dfcfe2c8 Mon Sep 17 00:00:00 2001 From: Daniel Shiposha Date: Tue, 06 Sep 2022 12:44:30 +0000 Subject: [PATCH] fix(xcm): remove AllowTopLevelPaidExecutionFrom --- --- a/runtime/quartz/src/xcm_config.rs +++ b/runtime/quartz/src/xcm_config.rs @@ -14,15 +14,11 @@ // 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::{Everything, Get}, -}; +use frame_support::{match_types, parameter_types, traits::Get}; use sp_std::{vec, vec::Vec}; use xcm::v1::{BodyId, Junction::*, Junctions::*, MultiLocation}; use xcm_builder::{ - AllowKnownQueryResponses, AllowSubscriptionsFrom, AllowTopLevelPaidExecutionFrom, - AllowUnpaidExecutionFrom, TakeWeightCredit, + AllowKnownQueryResponses, AllowSubscriptionsFrom, AllowUnpaidExecutionFrom, TakeWeightCredit, }; use crate::{ @@ -78,7 +74,6 @@ ), ( TakeWeightCredit, - AllowTopLevelPaidExecutionFrom, // Parent and its exec plurality get free execution AllowUnpaidExecutionFrom, // Expected responses are OK. --- a/runtime/unique/src/xcm_config.rs +++ b/runtime/unique/src/xcm_config.rs @@ -14,15 +14,11 @@ // 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::{Everything, Get}, -}; +use frame_support::{match_types, parameter_types, traits::Get}; use sp_std::{vec, vec::Vec}; use xcm::v1::{BodyId, Junction::*, Junctions::*, MultiLocation}; use xcm_builder::{ - AllowKnownQueryResponses, AllowSubscriptionsFrom, AllowTopLevelPaidExecutionFrom, - AllowUnpaidExecutionFrom, TakeWeightCredit, + AllowKnownQueryResponses, AllowSubscriptionsFrom, AllowUnpaidExecutionFrom, TakeWeightCredit, }; use crate::{ @@ -78,7 +74,6 @@ ), ( TakeWeightCredit, - AllowTopLevelPaidExecutionFrom, // Parent and its exec plurality get free execution AllowUnpaidExecutionFrom, // Expected responses are OK. -- gitstuff