git.delta.rocks / unique-network / refs/commits / 1a6fe8be0e1f

difftreelog

fix(xcm) restore AllowTopLevelPaidExecutionFrom

Daniel Shiposha2022-09-06parent: #afdd4f3.patch.diff
in: master

2 files changed

modifiedruntime/quartz/src/xcm_barrier.rsdiffbeforeafterboth
--- 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 <http://www.gnu.org/licenses/>.
 
-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<Everything>,
 		// Parent and its exec plurality get free execution
 		AllowUnpaidExecutionFrom<ParentOrParentsExecutivePlurality>,
 		// Expected responses are OK.
modifiedruntime/unique/src/xcm_barrier.rsdiffbeforeafterboth
1616
17use frame_support::{match_types, parameter_types, traits::Get};17use frame_support::{
18 match_types, parameter_types,
19 traits::{Get, Everything},
20};
18use sp_std::{vec, vec::Vec};21use sp_std::{vec, vec::Vec};
19use xcm::v1::{BodyId, Junction::*, Junctions::*, MultiLocation};22use xcm::v1::{BodyId, Junction::*, Junctions::*, MultiLocation};
20use xcm_builder::{23use xcm_builder::{
21 AllowKnownQueryResponses, AllowSubscriptionsFrom, AllowUnpaidExecutionFrom, TakeWeightCredit,24 AllowKnownQueryResponses, AllowSubscriptionsFrom, AllowUnpaidExecutionFrom, TakeWeightCredit,
25 AllowTopLevelPaidExecutionFrom,
22};26};
2327
24use crate::{28use crate::{
74 ),78 ),
75 (79 (
76 TakeWeightCredit,80 TakeWeightCredit,
81 AllowTopLevelPaidExecutionFrom<Everything>,
77 // Parent and its exec plurality get free execution82 // Parent and its exec plurality get free execution
78 AllowUnpaidExecutionFrom<ParentOrParentsExecutivePlurality>,83 AllowUnpaidExecutionFrom<ParentOrParentsExecutivePlurality>,
79 // Expected responses are OK.84 // Expected responses are OK.