@@ -21,13 +21,13 @@ use super::*;
21
21
22
22
use sp_runtime:: traits:: BadOrigin ;
23
23
use frame_support:: {
24
- assert_ok, assert_noop, impl_outer_origin, parameter_types, weights :: Weight ,
24
+ assert_ok, assert_noop, impl_outer_origin, parameter_types,
25
25
ord_parameter_types,
26
26
} ;
27
27
use sp_core:: H256 ;
28
28
use frame_system:: { EnsureSignedBy , EnsureOneOf , EnsureRoot } ;
29
29
use sp_runtime:: {
30
- Perbill , testing:: Header , traits:: { BlakeTwo256 , IdentityLookup } ,
30
+ testing:: Header , traits:: { BlakeTwo256 , IdentityLookup } ,
31
31
} ;
32
32
33
33
impl_outer_origin ! {
@@ -38,12 +38,13 @@ impl_outer_origin! {
38
38
pub struct Test ;
39
39
parameter_types ! {
40
40
pub const BlockHashCount : u64 = 250 ;
41
- pub const MaximumBlockWeight : Weight = 1024 ;
42
- pub const MaximumBlockLength : u32 = 2 * 1024 ;
43
- pub const AvailableBlockRatio : Perbill = Perbill :: one( ) ;
41
+ pub BlockWeights : frame_system:: limits:: BlockWeights =
42
+ frame_system:: limits:: BlockWeights :: simple_max( 1024 ) ;
44
43
}
45
44
impl frame_system:: Config for Test {
46
45
type BaseCallFilter = ( ) ;
46
+ type BlockWeights = ( ) ;
47
+ type BlockLength = ( ) ;
47
48
type Origin = Origin ;
48
49
type Index = u64 ;
49
50
type BlockNumber = u64 ;
@@ -55,13 +56,7 @@ impl frame_system::Config for Test {
55
56
type Header = Header ;
56
57
type Event = ( ) ;
57
58
type BlockHashCount = BlockHashCount ;
58
- type MaximumBlockWeight = MaximumBlockWeight ;
59
59
type DbWeight = ( ) ;
60
- type BlockExecutionWeight = ( ) ;
61
- type ExtrinsicBaseWeight = ( ) ;
62
- type MaximumExtrinsicWeight = MaximumBlockWeight ;
63
- type MaximumBlockLength = MaximumBlockLength ;
64
- type AvailableBlockRatio = AvailableBlockRatio ;
65
60
type Version = ( ) ;
66
61
type PalletInfo = ( ) ;
67
62
type AccountData = pallet_balances:: AccountData < u64 > ;
0 commit comments