@@ -279,11 +279,11 @@ mod tests {
279
279
use super :: * ;
280
280
281
281
use frame_support:: {
282
- assert_ok, assert_noop, impl_outer_origin, parameter_types, weights :: Weight ,
282
+ assert_ok, assert_noop, impl_outer_origin, parameter_types,
283
283
ord_parameter_types
284
284
} ;
285
285
use sp_core:: H256 ;
286
- use sp_runtime:: { Perbill , traits:: { BlakeTwo256 , IdentityLookup , BadOrigin } , testing:: Header } ;
286
+ use sp_runtime:: { traits:: { BlakeTwo256 , IdentityLookup , BadOrigin } , testing:: Header } ;
287
287
use frame_system:: EnsureSignedBy ;
288
288
289
289
impl_outer_origin ! {
@@ -294,14 +294,16 @@ mod tests {
294
294
pub struct Test ;
295
295
parameter_types ! {
296
296
pub const BlockHashCount : u64 = 250 ;
297
- pub const MaximumBlockWeight : Weight = 1024 ;
298
- pub const MaximumBlockLength : u32 = 2 * 1024 ;
299
- pub const AvailableBlockRatio : Perbill = Perbill :: one( ) ;
297
+ pub BlockWeights : frame_system:: limits:: BlockWeights =
298
+ frame_system:: limits:: BlockWeights :: simple_max( 1024 ) ;
300
299
pub static Members : Vec <u64 > = vec![ ] ;
301
300
pub static Prime : Option <u64 > = None ;
302
301
}
303
302
impl frame_system:: Config for Test {
304
303
type BaseCallFilter = ( ) ;
304
+ type BlockWeights = ( ) ;
305
+ type BlockLength = ( ) ;
306
+ type DbWeight = ( ) ;
305
307
type Origin = Origin ;
306
308
type Index = u64 ;
307
309
type BlockNumber = u64 ;
@@ -313,13 +315,6 @@ mod tests {
313
315
type Header = Header ;
314
316
type Event = ( ) ;
315
317
type BlockHashCount = BlockHashCount ;
316
- type MaximumBlockWeight = MaximumBlockWeight ;
317
- type DbWeight = ( ) ;
318
- type BlockExecutionWeight = ( ) ;
319
- type ExtrinsicBaseWeight = ( ) ;
320
- type MaximumExtrinsicWeight = MaximumBlockWeight ;
321
- type MaximumBlockLength = MaximumBlockLength ;
322
- type AvailableBlockRatio = AvailableBlockRatio ;
323
318
type Version = ( ) ;
324
319
type PalletInfo = ( ) ;
325
320
type AccountData = ( ) ;
0 commit comments