From 556ded96c656ddfeec06d33236a2457c9a3ebf73 Mon Sep 17 00:00:00 2001 From: muharem Date: Wed, 22 Feb 2023 09:22:32 +0100 Subject: [PATCH] Collectives chain xcm filter --- .../collectives/collectives-polkadot/src/xcm_config.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/parachains/runtimes/collectives/collectives-polkadot/src/xcm_config.rs b/parachains/runtimes/collectives/collectives-polkadot/src/xcm_config.rs index a97c7677570..4eb123d6802 100644 --- a/parachains/runtimes/collectives/collectives-polkadot/src/xcm_config.rs +++ b/parachains/runtimes/collectives/collectives-polkadot/src/xcm_config.rs @@ -155,6 +155,9 @@ impl Contains for SafeCallFilter { RuntimeCall::DmpQueue(..) | RuntimeCall::Utility(pallet_utility::Call::as_derivative { .. }) | RuntimeCall::Alliance( + // `init_members` accepts unbounded vecs as arguments, + // but the call can be initiated only by root origin. + pallet_alliance::Call::init_members { .. } | pallet_alliance::Call::vote { .. } | pallet_alliance::Call::close_old_weight { .. } | pallet_alliance::Call::disband { .. } | @@ -175,7 +178,8 @@ impl Contains for SafeCallFilter { pallet_collective::Call::close_old_weight { .. } | pallet_collective::Call::disapprove_proposal { .. } | pallet_collective::Call::close { .. }, - ) => true, + ) | + RuntimeCall::PolkadotXcm(pallet_xcm::Call::force_xcm_version { .. }) => true, _ => false, } }