@@ -1183,8 +1183,6 @@ mod tests {
1183
1183
} ;
1184
1184
use sp_core:: H256 ;
1185
1185
use frame_system:: { EnsureSignedBy , EnsureOneOf , EnsureRoot } ;
1186
- // The testing primitives are very useful for avoiding having to work with signatures
1187
- // or public keys. `u64` is used as the `AccountId` and no `Signature`s are required.
1188
1186
use sp_runtime:: {
1189
1187
Perbill , testing:: Header , traits:: { BlakeTwo256 , IdentityLookup } ,
1190
1188
} ;
@@ -1193,9 +1191,6 @@ mod tests {
1193
1191
pub enum Origin for Test where system = frame_system { }
1194
1192
}
1195
1193
1196
- // For testing the pallet, we construct most of a mock runtime. This means
1197
- // first constructing a configuration type (`Test`) which `impl`s each of the
1198
- // configuration traits of pallets we want to use.
1199
1194
#[ derive( Clone , Eq , PartialEq ) ]
1200
1195
pub struct Test ;
1201
1196
parameter_types ! {
@@ -1282,11 +1277,8 @@ mod tests {
1282
1277
type Balances = pallet_balances:: Module < Test > ;
1283
1278
type Identity = Module < Test > ;
1284
1279
1285
- // This function basically just builds a genesis storage key/value store according to
1286
- // our desired mockup.
1287
1280
pub fn new_test_ext ( ) -> sp_io:: TestExternalities {
1288
1281
let mut t = frame_system:: GenesisConfig :: default ( ) . build_storage :: < Test > ( ) . unwrap ( ) ;
1289
- // We use default for brevity, but you can configure as desired if needed.
1290
1282
pallet_balances:: GenesisConfig :: < Test > {
1291
1283
balances : vec ! [
1292
1284
( 1 , 10 ) ,
0 commit comments