Skip to content

Commit

Permalink
fix up template (paritytech#13205)
Browse files Browse the repository at this point in the history
  • Loading branch information
shawntabrizi authored and ltfschoen committed Feb 22, 2023
1 parent c94c89c commit 84f09ff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions bin/node-template/pallets/template/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ frame-support = { version = "4.0.0-dev", default-features = false, path = "../..
frame-system = { version = "4.0.0-dev", default-features = false, path = "../../../../frame/system" }

[dev-dependencies]
sp-core = { version = "7.0.0", default-features = false, path = "../../../../primitives/core" }
sp-io = { version = "7.0.0", default-features = false, path = "../../../../primitives/io" }
sp-runtime = { version = "7.0.0", default-features = false, path = "../../../../primitives/runtime" }
sp-core = { version = "7.0.0", path = "../../../../primitives/core" }
sp-io = { version = "7.0.0", path = "../../../../primitives/io" }
sp-runtime = { version = "7.0.0", path = "../../../../primitives/runtime" }

[features]
default = ["std"]
Expand Down
5 changes: 2 additions & 3 deletions bin/node-template/pallets/template/src/mock.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use crate as pallet_template;
use frame_support::traits::{ConstU16, ConstU64};
use frame_system as system;
use sp_core::H256;
use sp_runtime::{
testing::Header,
Expand All @@ -22,7 +21,7 @@ frame_support::construct_runtime!(
}
);

impl system::Config for Test {
impl frame_system::Config for Test {
type BaseCallFilter = frame_support::traits::Everything;
type BlockWeights = ();
type BlockLength = ();
Expand Down Expand Up @@ -55,5 +54,5 @@ impl pallet_template::Config for Test {

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

0 comments on commit 84f09ff

Please sign in to comment.