Skip to content

Commit

Permalink
make it build
Browse files Browse the repository at this point in the history
  • Loading branch information
rzadp committed Mar 21, 2024
1 parent aac0bdc commit 91bf78c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion templates/minimal/node/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ pub fn development_config() -> Result<ChainSpec, String> {

/// Configure initial storage state for FRAME pallets.
fn testnet_genesis() -> Value {
use frame::traits::Get;
use polkadot_sdk_frame::traits::Get;
use runtime::interface::{Balance, MinimumBalance};
let endowment = <MinimumBalance as Get<Balance>>::get().max(1) * 1000;
let balances = AccountKeyring::iter()
Expand Down
2 changes: 1 addition & 1 deletion templates/minimal/pallets/template/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pub mod pallet {
use super::*;

#[pallet::config]
pub trait Config: frame_system::Config {}
pub trait Config: polkadot_sdk_frame::deps::frame_system::Config {}

#[pallet::pallet]
pub struct Pallet<T>(_);
Expand Down
4 changes: 2 additions & 2 deletions templates/minimal/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,10 +238,10 @@ impl_runtime_apis! {
// https://github.com/paritytech/substrate/issues/10579#issuecomment-1600537558
pub mod interface {
use super::Runtime;
use frame::deps::frame_system;
use polkadot_sdk_frame::deps::frame_system;

pub type Block = super::Block;
pub use frame::runtime::types_common::OpaqueBlock;
pub use polkadot_sdk_frame::runtime::types_common::OpaqueBlock;
pub type AccountId = <Runtime as frame_system::Config>::AccountId;
pub type Nonce = <Runtime as frame_system::Config>::Nonce;
pub type Hash = <Runtime as frame_system::Config>::Hash;
Expand Down

0 comments on commit 91bf78c

Please sign in to comment.