@@ -23,10 +23,10 @@ use super::*;
23
23
24
24
use frame_support:: {
25
25
assert_ok, assert_noop, impl_outer_origin, parameter_types, impl_outer_dispatch,
26
- weights :: Weight , impl_outer_event, traits:: Filter ,
26
+ impl_outer_event, traits:: Filter ,
27
27
} ;
28
28
use sp_core:: H256 ;
29
- use sp_runtime:: { Perbill , traits:: { BlakeTwo256 , IdentityLookup } , testing:: Header } ;
29
+ use sp_runtime:: { traits:: { BlakeTwo256 , IdentityLookup } , testing:: Header } ;
30
30
use crate as multisig;
31
31
32
32
impl_outer_origin ! {
@@ -55,12 +55,14 @@ impl_outer_dispatch! {
55
55
pub struct Test ;
56
56
parameter_types ! {
57
57
pub const BlockHashCount : u64 = 250 ;
58
- pub const MaximumBlockWeight : Weight = 1024 ;
59
- pub const MaximumBlockLength : u32 = 2 * 1024 ;
60
- pub const AvailableBlockRatio : Perbill = Perbill :: one( ) ;
58
+ pub BlockWeights : frame_system:: limits:: BlockWeights =
59
+ frame_system:: limits:: BlockWeights :: simple_max( 1024 ) ;
61
60
}
62
61
impl frame_system:: Config for Test {
63
62
type BaseCallFilter = TestBaseCallFilter ;
63
+ type BlockWeights = ( ) ;
64
+ type BlockLength = ( ) ;
65
+ type DbWeight = ( ) ;
64
66
type Origin = Origin ;
65
67
type Index = u64 ;
66
68
type BlockNumber = u64 ;
@@ -72,13 +74,6 @@ impl frame_system::Config for Test {
72
74
type Header = Header ;
73
75
type Event = TestEvent ;
74
76
type BlockHashCount = BlockHashCount ;
75
- type MaximumBlockWeight = MaximumBlockWeight ;
76
- type DbWeight = ( ) ;
77
- type BlockExecutionWeight = ( ) ;
78
- type ExtrinsicBaseWeight = ( ) ;
79
- type MaximumExtrinsicWeight = MaximumBlockWeight ;
80
- type MaximumBlockLength = MaximumBlockLength ;
81
- type AvailableBlockRatio = AvailableBlockRatio ;
82
77
type Version = ( ) ;
83
78
type PalletInfo = ( ) ;
84
79
type AccountData = pallet_balances:: AccountData < u64 > ;
0 commit comments