From b5aa77736009e9c49cfd8349a2e4cfbe92832627 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dino=20Pa=C4=8Dandi?= <3002868+Dinonard@users.noreply.github.com> Date: Thu, 4 Jul 2024 10:33:22 +0200 Subject: [PATCH] Missing council permissions for Shibuya (#1287) --- runtime/local/src/lib.rs | 4 +++- runtime/shibuya/src/lib.rs | 8 +++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/runtime/local/src/lib.rs b/runtime/local/src/lib.rs index 6f31582b1d..fceacfc7de 100644 --- a/runtime/local/src/lib.rs +++ b/runtime/local/src/lib.rs @@ -1113,7 +1113,9 @@ impl InstanceFilter for CommunityCouncilCallFilter { fn filter(&self, c: &RuntimeCall) -> bool { matches!( c, - RuntimeCall::DappStaking(..) | RuntimeCall::System(frame_system::Call::remark { .. }) + RuntimeCall::DappStaking(..) + | RuntimeCall::System(frame_system::Call::remark { .. }) + | RuntimeCall::Utility(..) ) } } diff --git a/runtime/shibuya/src/lib.rs b/runtime/shibuya/src/lib.rs index 3b190a910b..88ff14c231 100644 --- a/runtime/shibuya/src/lib.rs +++ b/runtime/shibuya/src/lib.rs @@ -438,9 +438,9 @@ impl pallet_dapp_staking_v3::Config for Runtime { type RuntimeFreezeReason = RuntimeFreezeReason; type Currency = Balances; type SmartContract = SmartContract; - type ContractRegisterOrigin = frame_system::EnsureRoot; + type ContractRegisterOrigin = EnsureRootOrTwoThirdsCommunityCouncil; type ContractUnregisterOrigin = frame_system::EnsureRoot; - type ManagerOrigin = frame_system::EnsureRoot; + type ManagerOrigin = EnsureRootOrTwoThirdsTechnicalCommittee; type NativePriceProvider = PriceAggregator; type StakingRewardHandler = Inflation; type CycleConfiguration = InflationCycleConfig; @@ -1441,7 +1441,9 @@ impl InstanceFilter for CommunityCouncilCallFilter { fn filter(&self, c: &RuntimeCall) -> bool { matches!( c, - RuntimeCall::DappStaking(..) | RuntimeCall::System(frame_system::Call::remark { .. }) + RuntimeCall::DappStaking(..) + | RuntimeCall::System(frame_system::Call::remark { .. }) + | RuntimeCall::Utility(..) ) } }