20
20
#![ cfg( test) ]
21
21
22
22
use sp_runtime:: testing:: Header ;
23
- use sp_runtime:: Perbill ;
24
23
use sp_core:: H256 ;
25
- use frame_support:: { impl_outer_origin, impl_outer_event, parameter_types, weights :: Weight } ;
24
+ use frame_support:: { impl_outer_origin, impl_outer_event, parameter_types} ;
26
25
use crate :: { self as indices, Module , Config } ;
27
26
use frame_system as system;
28
27
use pallet_balances as balances;
@@ -44,13 +43,15 @@ pub struct Test;
44
43
45
44
parameter_types ! {
46
45
pub const BlockHashCount : u64 = 250 ;
47
- pub const MaximumBlockWeight : Weight = 1024 ;
48
- pub const MaximumBlockLength : u32 = 2 * 1024 ;
49
- pub const AvailableBlockRatio : Perbill = Perbill :: one( ) ;
46
+ pub BlockWeights : frame_system:: limits:: BlockWeights =
47
+ frame_system:: limits:: BlockWeights :: simple_max( 1024 ) ;
50
48
}
51
49
52
50
impl frame_system:: Config for Test {
53
51
type BaseCallFilter = ( ) ;
52
+ type BlockWeights = ( ) ;
53
+ type BlockLength = ( ) ;
54
+ type DbWeight = ( ) ;
54
55
type Origin = Origin ;
55
56
type Call = ( ) ;
56
57
type Index = u64 ;
@@ -62,13 +63,6 @@ impl frame_system::Config for Test {
62
63
type Header = Header ;
63
64
type Event = MetaEvent ;
64
65
type BlockHashCount = BlockHashCount ;
65
- type MaximumBlockWeight = MaximumBlockWeight ;
66
- type DbWeight = ( ) ;
67
- type BlockExecutionWeight = ( ) ;
68
- type ExtrinsicBaseWeight = ( ) ;
69
- type MaximumExtrinsicWeight = MaximumBlockWeight ;
70
- type MaximumBlockLength = MaximumBlockLength ;
71
- type AvailableBlockRatio = AvailableBlockRatio ;
72
66
type Version = ( ) ;
73
67
type PalletInfo = ( ) ;
74
68
type AccountData = pallet_balances:: AccountData < u64 > ;
0 commit comments