diff --git a/runtime/kreivo/src/communities/mod.rs b/runtime/kreivo/src/communities/mod.rs index 479faa8e..b869ca1a 100644 --- a/runtime/kreivo/src/communities/mod.rs +++ b/runtime/kreivo/src/communities/mod.rs @@ -1,7 +1,9 @@ use super::*; use frame_support::traits::TryMapSuccess; -use frame_system::{EnsureNever, EnsureRootWithSuccess, EnsureSigned}; +#[cfg(not(feature = "runtime-benchmarks"))] +use frame_system::EnsureNever; +use frame_system::{EnsureRootWithSuccess, EnsureSigned}; use pallet_communities::origin::{EnsureCommunity, EnsureSignedPays}; use sp_runtime::{morph_types, traits::AccountIdConversion}; use virto_common::{CommunityId, MembershipId}; @@ -54,7 +56,10 @@ type AnyoneElsePays = EnsureSignedPays; + #[cfg(feature = "runtime-benchmarks")] + type CreateOrigin = RootCreatesCommunitiesForFree; type AdminOrigin = EitherOf, EnsureCommunityAccount>; type MemberMgmtOrigin = EitherOf, EnsureCommunityAccount>; type MemberMgmt = CommunityMemberships;