git.delta.rocks / unique-network / refs/commits / e0c98a46d28e

difftreelog

fix(xcm) remove AllowTopLevelPaidExecutionFrom

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

2 files changed

modifiedruntime/quartz/src/xcm_config.rsdiffbeforeafterboth
1616
17use frame_support::{17use frame_support::{match_types, parameter_types, traits::Get};
18 match_types, parameter_types,
19 traits::{Everything, Get},
20};
21use sp_std::{vec, vec::Vec};18use sp_std::{vec, vec::Vec};
22use xcm::v1::{BodyId, Junction::*, Junctions::*, MultiLocation};19use xcm::v1::{BodyId, Junction::*, Junctions::*, MultiLocation};
23use xcm_builder::{20use xcm_builder::{
24 AllowKnownQueryResponses, AllowSubscriptionsFrom, AllowTopLevelPaidExecutionFrom,21 AllowKnownQueryResponses, AllowSubscriptionsFrom, AllowUnpaidExecutionFrom, TakeWeightCredit,
25 AllowUnpaidExecutionFrom, TakeWeightCredit,
26};22};
2723
78 ),74 ),
79 (75 (
80 TakeWeightCredit,76 TakeWeightCredit,
81 AllowTopLevelPaidExecutionFrom<Everything>,
82 // Parent and its exec plurality get free execution77 // Parent and its exec plurality get free execution
83 AllowUnpaidExecutionFrom<ParentOrParentsExecutivePlurality>,78 AllowUnpaidExecutionFrom<ParentOrParentsExecutivePlurality>,
84 // Expected responses are OK.79 // Expected responses are OK.
modifiedruntime/unique/src/xcm_config.rsdiffbeforeafterboth
1616
17use frame_support::{17use frame_support::{match_types, parameter_types, traits::Get};
18 match_types, parameter_types,
19 traits::{Everything, Get},
20};
21use sp_std::{vec, vec::Vec};18use sp_std::{vec, vec::Vec};
22use xcm::v1::{BodyId, Junction::*, Junctions::*, MultiLocation};19use xcm::v1::{BodyId, Junction::*, Junctions::*, MultiLocation};
23use xcm_builder::{20use xcm_builder::{
24 AllowKnownQueryResponses, AllowSubscriptionsFrom, AllowTopLevelPaidExecutionFrom,21 AllowKnownQueryResponses, AllowSubscriptionsFrom, AllowUnpaidExecutionFrom, TakeWeightCredit,
25 AllowUnpaidExecutionFrom, TakeWeightCredit,
26};22};
2723
78 ),74 ),
79 (75 (
80 TakeWeightCredit,76 TakeWeightCredit,
81 AllowTopLevelPaidExecutionFrom<Everything>,
82 // Parent and its exec plurality get free execution77 // Parent and its exec plurality get free execution
83 AllowUnpaidExecutionFrom<ParentOrParentsExecutivePlurality>,78 AllowUnpaidExecutionFrom<ParentOrParentsExecutivePlurality>,
84 // Expected responses are OK.79 // Expected responses are OK.