@@ -7,8 +7,6 @@ use frame_support::{
7
7
assert_ok, impl_outer_origin, parameter_types, impl_outer_dispatch,
8
8
} ;
9
9
use sp_core:: H256 ;
10
- // The testing primitives are very useful for avoiding having to work with signatures
11
- // or public keys. `u64` is used as the `AccountId` and no `Signature`s are required.
12
10
use sp_runtime:: {
13
11
Perbill ,
14
12
testing:: Header ,
@@ -25,9 +23,6 @@ impl_outer_dispatch! {
25
23
}
26
24
}
27
25
28
- // For testing the pallet, we construct most of a mock runtime. This means
29
- // first constructing a configuration type (`Test`) which `impl`s each of the
30
- // configuration traits of pallets we want to use.
31
26
#[ derive( Clone , Eq , PartialEq ) ]
32
27
pub struct Test ;
33
28
parameter_types ! {
@@ -111,8 +106,6 @@ type System = frame_system::Module<Test>;
111
106
type Balances = pallet_balances:: Module < Test > ;
112
107
type EVM = Module < Test > ;
113
108
114
- // This function basically just builds a genesis storage key/value store according to
115
- // our desired mockup.
116
109
pub fn new_test_ext ( ) -> sp_io:: TestExternalities {
117
110
let mut t = frame_system:: GenesisConfig :: default ( ) . build_storage :: < Test > ( ) . unwrap ( ) ;
118
111
@@ -140,7 +133,6 @@ pub fn new_test_ext() -> sp_io::TestExternalities {
140
133
}
141
134
) ;
142
135
143
- // We use default for brevity, but you can configure as desired if needed.
144
136
pallet_balances:: GenesisConfig :: < Test > :: default ( ) . assimilate_storage ( & mut t) . unwrap ( ) ;
145
137
GenesisConfig { accounts } . assimilate_storage ( & mut t) . unwrap ( ) ;
146
138
t. into ( )
0 commit comments