Skip to content

Commit 8751e20

Browse files
committed
Remove duplicate comments (#6638)
1 parent d920646 commit 8751e20

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/tests.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ use frame_support::{
77
assert_ok, impl_outer_origin, parameter_types, impl_outer_dispatch,
88
};
99
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.
1210
use 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)]
3227
pub struct Test;
3328
parameter_types! {
@@ -111,8 +106,6 @@ type System = frame_system::Module<Test>;
111106
type Balances = pallet_balances::Module<Test>;
112107
type EVM = Module<Test>;
113108

114-
// This function basically just builds a genesis storage key/value store according to
115-
// our desired mockup.
116109
pub 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

Comments
 (0)