@@ -241,13 +241,13 @@ mod tests {
241
241
use super :: * ;
242
242
243
243
use frame_support:: {
244
- assert_ok, assert_noop, impl_outer_origin, parameter_types, weights :: Weight ,
244
+ assert_ok, assert_noop, impl_outer_origin, parameter_types,
245
245
ord_parameter_types
246
246
} ;
247
247
use sp_core:: H256 ;
248
248
use frame_system:: EnsureSignedBy ;
249
249
use sp_runtime:: {
250
- Perbill , testing:: Header , traits:: { BlakeTwo256 , IdentityLookup , BadOrigin } ,
250
+ testing:: Header , traits:: { BlakeTwo256 , IdentityLookup , BadOrigin } ,
251
251
} ;
252
252
253
253
impl_outer_origin ! {
@@ -258,12 +258,14 @@ mod tests {
258
258
pub struct Test ;
259
259
parameter_types ! {
260
260
pub const BlockHashCount : u64 = 250 ;
261
- pub const MaximumBlockWeight : Weight = 1024 ;
262
- pub const MaximumBlockLength : u32 = 2 * 1024 ;
263
- pub const AvailableBlockRatio : Perbill = Perbill :: one( ) ;
261
+ pub BlockWeights : frame_system:: limits:: BlockWeights =
262
+ frame_system:: limits:: BlockWeights :: simple_max( 1024 ) ;
264
263
}
265
264
impl frame_system:: Config for Test {
266
265
type BaseCallFilter = ( ) ;
266
+ type BlockWeights = ( ) ;
267
+ type BlockLength = ( ) ;
268
+ type DbWeight = ( ) ;
267
269
type Origin = Origin ;
268
270
type Index = u64 ;
269
271
type BlockNumber = u64 ;
@@ -275,13 +277,6 @@ mod tests {
275
277
type Header = Header ;
276
278
type Event = ( ) ;
277
279
type BlockHashCount = BlockHashCount ;
278
- type MaximumBlockWeight = MaximumBlockWeight ;
279
- type DbWeight = ( ) ;
280
- type BlockExecutionWeight = ( ) ;
281
- type ExtrinsicBaseWeight = ( ) ;
282
- type MaximumExtrinsicWeight = MaximumBlockWeight ;
283
- type MaximumBlockLength = MaximumBlockLength ;
284
- type AvailableBlockRatio = AvailableBlockRatio ;
285
280
type Version = ( ) ;
286
281
type PalletInfo = ( ) ;
287
282
type AccountData = pallet_balances:: AccountData < u64 > ;
0 commit comments