@@ -7,8 +7,6 @@ use frame_support::{
77 assert_ok, impl_outer_origin, parameter_types, impl_outer_dispatch,
88} ;
99use 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.
1210use sp_runtime:: {
1311 Perbill ,
1412 testing:: Header ,
@@ -25,9 +23,6 @@ impl_outer_dispatch! {
2523 }
2624}
2725
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.
3126#[ derive( Clone , Eq , PartialEq ) ]
3227pub struct Test ;
3328parameter_types ! {
@@ -111,8 +106,6 @@ type System = frame_system::Module<Test>;
111106type Balances = pallet_balances:: Module < Test > ;
112107type EVM = Module < Test > ;
113108
114- // This function basically just builds a genesis storage key/value store according to
115- // our desired mockup.
116109pub fn new_test_ext ( ) -> sp_io:: TestExternalities {
117110 let mut t = frame_system:: GenesisConfig :: default ( ) . build_storage :: < Test > ( ) . unwrap ( ) ;
118111
@@ -140,7 +133,6 @@ pub fn new_test_ext() -> sp_io::TestExternalities {
140133 }
141134 ) ;
142135
143- // We use default for brevity, but you can configure as desired if needed.
144136 pallet_balances:: GenesisConfig :: < Test > :: default ( ) . assimilate_storage ( & mut t) . unwrap ( ) ;
145137 GenesisConfig { accounts } . assimilate_storage ( & mut t) . unwrap ( ) ;
146138 t. into ( )
0 commit comments