From 06b395f7b928836522c61c78d7a43c2af7d2842a Mon Sep 17 00:00:00 2001 From: Daniel Shiposha Date: Thu, 28 Sep 2023 18:45:03 +0000 Subject: [PATCH] fix: allow xcm transact for gov bodies when they exist --- --- a/runtime/common/config/xcm/mod.rs +++ b/runtime/common/config/xcm/mod.rs @@ -166,8 +166,10 @@ impl XcmCallFilter { fn allow_gov_and_sys_call(call: &RuntimeCall) -> bool { match call { - RuntimeCall::System(..) - | RuntimeCall::Identity(..) + RuntimeCall::System(..) => true, + + #[cfg(feature = "governance")] + RuntimeCall::Identity(..) | RuntimeCall::Preimage(..) | RuntimeCall::Democracy(..) | RuntimeCall::Council(..) -- gitstuff