@@ -83,8 +83,10 @@ parameter_types! {
8383impl pallet_treasury:: Config for Test {
8484 type PalletId = TreasuryPalletId ;
8585 type Currency = pallet_balances:: Pallet < Test > ;
86+ type ApproveOrigin = frame_system:: EnsureRoot < u128 > ;
8687 type RejectOrigin = frame_system:: EnsureRoot < u128 > ;
8788 type RuntimeEvent = RuntimeEvent ;
89+ type OnSlash = ( ) ;
8890 type SpendPeriod = ConstU64 < 2 > ;
8991 type Burn = Burn ;
9092 type BurnDestination = ( ) ; // Just gets burned.
@@ -105,8 +107,10 @@ impl pallet_treasury::Config for Test {
105107impl pallet_treasury:: Config < Instance1 > for Test {
106108 type PalletId = TreasuryPalletId2 ;
107109 type Currency = pallet_balances:: Pallet < Test > ;
110+ type ApproveOrigin = frame_system:: EnsureRoot < u128 > ;
108111 type RejectOrigin = frame_system:: EnsureRoot < u128 > ;
109112 type RuntimeEvent = RuntimeEvent ;
113+ type OnSlash = ( ) ;
110114 type SpendPeriod = ConstU64 < 2 > ;
111115 type Burn = Burn ;
112116 type BurnDestination = ( ) ; // Just gets burned.
@@ -145,7 +149,6 @@ impl Config for Test {
145149 type MaximumReasonLength = ConstU32 < 16384 > ;
146150 type WeightInfo = ( ) ;
147151 type ChildBountyManager = ( ) ;
148- type OnSlash = ( ) ;
149152}
150153
151154impl Config < Instance1 > for Test {
@@ -161,7 +164,6 @@ impl Config<Instance1> for Test {
161164 type MaximumReasonLength = ConstU32 < 16384 > ;
162165 type WeightInfo = ( ) ;
163166 type ChildBountyManager = ( ) ;
164- type OnSlash = ( ) ;
165167}
166168
167169type TreasuryError = pallet_treasury:: Error < Test > ;
0 commit comments