difftreelog
fix(xcm) restore AllowTopLevelPaidExecutionFrom
in: master
2 files changed
runtime/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.
runtime/unique/src/xcm_barrier.rsdiffbeforeafterboth161617use 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};232724use 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 execution78 AllowUnpaidExecutionFrom<ParentOrParentsExecutivePlurality>,83 AllowUnpaidExecutionFrom<ParentOrParentsExecutivePlurality>,79 // Expected responses are OK.84 // Expected responses are OK.