@@ -292,10 +292,10 @@ impl<T: Config> UnixTime for Module<T> {
292
292
mod tests {
293
293
use super :: * ;
294
294
295
- use frame_support:: { impl_outer_origin, assert_ok, parameter_types, weights :: Weight } ;
295
+ use frame_support:: { impl_outer_origin, assert_ok, parameter_types} ;
296
296
use sp_io:: TestExternalities ;
297
297
use sp_core:: H256 ;
298
- use sp_runtime:: { Perbill , traits:: { BlakeTwo256 , IdentityLookup } , testing:: Header } ;
298
+ use sp_runtime:: { traits:: { BlakeTwo256 , IdentityLookup } , testing:: Header } ;
299
299
300
300
pub fn new_test_ext ( ) -> TestExternalities {
301
301
let t = frame_system:: GenesisConfig :: default ( ) . build_storage :: < Test > ( ) . unwrap ( ) ;
@@ -310,12 +310,14 @@ mod tests {
310
310
pub struct Test ;
311
311
parameter_types ! {
312
312
pub const BlockHashCount : u64 = 250 ;
313
- pub const MaximumBlockWeight : Weight = 1024 ;
314
- pub const MaximumBlockLength : u32 = 2 * 1024 ;
315
- pub const AvailableBlockRatio : Perbill = Perbill :: one( ) ;
313
+ pub BlockWeights : frame_system:: limits:: BlockWeights =
314
+ frame_system:: limits:: BlockWeights :: simple_max( 1024 ) ;
316
315
}
317
316
impl frame_system:: Config for Test {
318
317
type BaseCallFilter = ( ) ;
318
+ type BlockWeights = ( ) ;
319
+ type BlockLength = ( ) ;
320
+ type DbWeight = ( ) ;
319
321
type Origin = Origin ;
320
322
type Index = u64 ;
321
323
type BlockNumber = u64 ;
@@ -327,13 +329,6 @@ mod tests {
327
329
type Header = Header ;
328
330
type Event = ( ) ;
329
331
type BlockHashCount = BlockHashCount ;
330
- type MaximumBlockWeight = MaximumBlockWeight ;
331
- type DbWeight = ( ) ;
332
- type BlockExecutionWeight = ( ) ;
333
- type ExtrinsicBaseWeight = ( ) ;
334
- type MaximumExtrinsicWeight = MaximumBlockWeight ;
335
- type AvailableBlockRatio = AvailableBlockRatio ;
336
- type MaximumBlockLength = MaximumBlockLength ;
337
332
type Version = ( ) ;
338
333
type PalletInfo = ( ) ;
339
334
type AccountData = ( ) ;
0 commit comments