Skip to content

Commit

Permalink
Missing council permissions for Shibuya (#1287)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dinonard authored Jul 4, 2024
1 parent bf18931 commit b5aa777
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 3 additions & 1 deletion runtime/local/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1113,7 +1113,9 @@ impl InstanceFilter<RuntimeCall> 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(..)
)
}
}
Expand Down
8 changes: 5 additions & 3 deletions runtime/shibuya/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -438,9 +438,9 @@ impl pallet_dapp_staking_v3::Config for Runtime {
type RuntimeFreezeReason = RuntimeFreezeReason;
type Currency = Balances;
type SmartContract = SmartContract<AccountId>;
type ContractRegisterOrigin = frame_system::EnsureRoot<AccountId>;
type ContractRegisterOrigin = EnsureRootOrTwoThirdsCommunityCouncil;
type ContractUnregisterOrigin = frame_system::EnsureRoot<AccountId>;
type ManagerOrigin = frame_system::EnsureRoot<AccountId>;
type ManagerOrigin = EnsureRootOrTwoThirdsTechnicalCommittee;
type NativePriceProvider = PriceAggregator;
type StakingRewardHandler = Inflation;
type CycleConfiguration = InflationCycleConfig;
Expand Down Expand Up @@ -1441,7 +1441,9 @@ impl InstanceFilter<RuntimeCall> 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(..)
)
}
}
Expand Down

0 comments on commit b5aa777

Please sign in to comment.