From 22ed2e64c8dc8f8ba9d419dc5194531369024d84 Mon Sep 17 00:00:00 2001 From: Xavier Lau Date: Wed, 25 Dec 2024 13:51:24 +0800 Subject: [PATCH] Companion of paritytech/polkadot-sdk#4831 --- pallet/staking/src/mock.rs | 2 -- runtime/crab/src/pallets/governance.rs | 2 -- runtime/darwinia/src/pallets/governance.rs | 2 -- 3 files changed, 6 deletions(-) diff --git a/pallet/staking/src/mock.rs b/pallet/staking/src/mock.rs index 34d1e5ed7..74c5079f8 100644 --- a/pallet/staking/src/mock.rs +++ b/pallet/staking/src/mock.rs @@ -162,7 +162,6 @@ where } } impl pallet_treasury::Config for Runtime { - type ApproveOrigin = frame_system::EnsureRoot; type AssetKind = (); type BalanceConverter = frame_support::traits::tokens::UnityAssetBalanceConversion; #[cfg(feature = "runtime-benchmarks")] @@ -173,7 +172,6 @@ impl pallet_treasury::Config for Runtime { type BurnDestination = (); type Currency = Balances; type MaxApprovals = (); - type OnSlash = (); type PalletId = TreasuryPalletId; type Paymaster = frame_support::traits::tokens::PayFromAccount; type PayoutPeriod = (); diff --git a/runtime/crab/src/pallets/governance.rs b/runtime/crab/src/pallets/governance.rs index 74072b71c..6b4950f28 100644 --- a/runtime/crab/src/pallets/governance.rs +++ b/runtime/crab/src/pallets/governance.rs @@ -101,7 +101,6 @@ impl pallet_whitelist::Config for Runtime { } impl pallet_treasury::Config for Runtime { - type ApproveOrigin = RootOr; type AssetKind = (); type BalanceConverter = frame_support::traits::tokens::UnityAssetBalanceConversion; #[cfg(feature = "runtime-benchmarks")] @@ -112,7 +111,6 @@ impl pallet_treasury::Config for Runtime { type BurnDestination = (); type Currency = Balances; type MaxApprovals = ConstU32<100>; - type OnSlash = Treasury; type PalletId = pallet_config::TreasuryPid; type Paymaster = frame_support::traits::tokens::PayFromAccount; diff --git a/runtime/darwinia/src/pallets/governance.rs b/runtime/darwinia/src/pallets/governance.rs index 62eee25d6..6f9ad2a72 100644 --- a/runtime/darwinia/src/pallets/governance.rs +++ b/runtime/darwinia/src/pallets/governance.rs @@ -101,7 +101,6 @@ impl pallet_whitelist::Config for Runtime { } impl pallet_treasury::Config for Runtime { - type ApproveOrigin = RootOr; type AssetKind = (); type BalanceConverter = frame_support::traits::tokens::UnityAssetBalanceConversion; #[cfg(feature = "runtime-benchmarks")] @@ -112,7 +111,6 @@ impl pallet_treasury::Config for Runtime { type BurnDestination = (); type Currency = Balances; type MaxApprovals = ConstU32<100>; - type OnSlash = Treasury; type PalletId = pallet_config::TreasuryPid; type Paymaster = frame_support::traits::tokens::PayFromAccount;