@@ -21,12 +21,11 @@ use super::*;
2121
2222use frame_support:: {
2323 impl_outer_origin, impl_outer_dispatch, impl_outer_event, parameter_types,
24- weights:: Weight ,
2524 traits:: { OnInitialize , OnFinalize } ,
2625} ;
2726use sp_core:: H256 ;
2827use sp_runtime:: {
29- Perbill , traits:: { BlakeTwo256 , IdentityLookup } , testing:: Header ,
28+ traits:: { BlakeTwo256 , IdentityLookup } , testing:: Header ,
3029} ;
3130use crate as recovery;
3231
@@ -53,13 +52,15 @@ pub struct Test;
5352
5453parameter_types ! {
5554 pub const BlockHashCount : u64 = 250 ;
56- pub const MaximumBlockWeight : Weight = 1024 ;
57- pub const MaximumBlockLength : u32 = 2 * 1024 ;
58- pub const AvailableBlockRatio : Perbill = Perbill :: one( ) ;
55+ pub BlockWeights : frame_system:: limits:: BlockWeights =
56+ frame_system:: limits:: BlockWeights :: simple_max( 1024 ) ;
5957}
6058
6159impl frame_system:: Config for Test {
6260 type BaseCallFilter = ( ) ;
61+ type BlockWeights = ( ) ;
62+ type BlockLength = ( ) ;
63+ type DbWeight = ( ) ;
6364 type Origin = Origin ;
6465 type Call = Call ;
6566 type Index = u64 ;
@@ -71,13 +72,6 @@ impl frame_system::Config for Test {
7172 type Header = Header ;
7273 type Event = TestEvent ;
7374 type BlockHashCount = BlockHashCount ;
74- type MaximumBlockWeight = MaximumBlockWeight ;
75- type DbWeight = ( ) ;
76- type BlockExecutionWeight = ( ) ;
77- type ExtrinsicBaseWeight = ( ) ;
78- type MaximumExtrinsicWeight = MaximumBlockWeight ;
79- type MaximumBlockLength = MaximumBlockLength ;
80- type AvailableBlockRatio = AvailableBlockRatio ;
8175 type Version = ( ) ;
8276 type PalletInfo = ( ) ;
8377 type AccountData = pallet_balances:: AccountData < u128 > ;
0 commit comments