Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit f4caddb

Browse files
authored
fix up template (#13205)
1 parent 6c11190 commit f4caddb

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

bin/node-template/pallets/template/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ frame-support = { version = "4.0.0-dev", default-features = false, path = "../..
2222
frame-system = { version = "4.0.0-dev", default-features = false, path = "../../../../frame/system" }
2323

2424
[dev-dependencies]
25-
sp-core = { version = "7.0.0", default-features = false, path = "../../../../primitives/core" }
26-
sp-io = { version = "7.0.0", default-features = false, path = "../../../../primitives/io" }
27-
sp-runtime = { version = "7.0.0", default-features = false, path = "../../../../primitives/runtime" }
25+
sp-core = { version = "7.0.0", path = "../../../../primitives/core" }
26+
sp-io = { version = "7.0.0", path = "../../../../primitives/io" }
27+
sp-runtime = { version = "7.0.0", path = "../../../../primitives/runtime" }
2828

2929
[features]
3030
default = ["std"]

bin/node-template/pallets/template/src/mock.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
use crate as pallet_template;
22
use frame_support::traits::{ConstU16, ConstU64};
3-
use frame_system as system;
43
use sp_core::H256;
54
use sp_runtime::{
65
testing::Header,
@@ -22,7 +21,7 @@ frame_support::construct_runtime!(
2221
}
2322
);
2423

25-
impl system::Config for Test {
24+
impl frame_system::Config for Test {
2625
type BaseCallFilter = frame_support::traits::Everything;
2726
type BlockWeights = ();
2827
type BlockLength = ();
@@ -55,5 +54,5 @@ impl pallet_template::Config for Test {
5554

5655
// Build genesis storage according to the mock runtime.
5756
pub fn new_test_ext() -> sp_io::TestExternalities {
58-
system::GenesisConfig::default().build_storage::<Test>().unwrap().into()
57+
frame_system::GenesisConfig::default().build_storage::<Test>().unwrap().into()
5958
}

0 commit comments

Comments
 (0)