Skip to content

Commit c652446

Browse files
JoshOrndorffbkchr
authored andcommitted
Change dependency name "node-template-runtime" -> "runtime" (paritytech#3910)
1 parent 8161896 commit c652446

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

node-template/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ grandpa = { package = "substrate-finality-grandpa", path = "../core/finality-gra
3333
grandpa-primitives = { package = "substrate-finality-grandpa-primitives", path = "../core/finality-grandpa/primitives" }
3434
substrate-client = { path = "../core/client" }
3535
basic-authorship = { package = "substrate-basic-authorship", path = "../core/basic-authorship" }
36-
node-template-runtime = { path = "runtime" }
36+
runtime = { package = "node-template-runtime", path = "runtime" }
3737

3838
[build-dependencies]
3939
vergen = "3.0.4"

node-template/src/chain_spec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use primitives::{Pair, Public};
2-
use node_template_runtime::{
2+
use runtime::{
33
AccountId, AuraConfig, BalancesConfig, GenesisConfig, GrandpaConfig,
44
SudoConfig, IndicesConfig, SystemConfig, WASM_BINARY,
55
};

node-template/src/service.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use std::sync::Arc;
44
use std::time::Duration;
55
use substrate_client::LongestChain;
66
use futures::prelude::*;
7-
use node_template_runtime::{self, GenesisConfig, opaque::Block, RuntimeApi};
7+
use runtime::{self, GenesisConfig, opaque::Block, RuntimeApi};
88
use substrate_service::{error::{Error as ServiceError}, AbstractService, Configuration, ServiceBuilder};
99
use transaction_pool::{self, txpool::{Pool as TransactionPool}};
1010
use inherents::InherentDataProviders;
@@ -17,8 +17,8 @@ use grandpa::{self, FinalityProofProvider as GrandpaFinalityProofProvider};
1717
// Our native executor instance.
1818
native_executor_instance!(
1919
pub Executor,
20-
node_template_runtime::api::dispatch,
21-
node_template_runtime::native_version,
20+
runtime::api::dispatch,
21+
runtime::native_version,
2222
);
2323

2424
construct_simple_protocol! {
@@ -36,7 +36,7 @@ macro_rules! new_full_start {
3636
let inherent_data_providers = inherents::InherentDataProviders::new();
3737

3838
let builder = substrate_service::ServiceBuilder::new_full::<
39-
node_template_runtime::opaque::Block, node_template_runtime::RuntimeApi, crate::service::Executor
39+
runtime::opaque::Block, runtime::RuntimeApi, crate::service::Executor
4040
>($config)?
4141
.with_select_chain(|_config, backend| {
4242
Ok(substrate_client::LongestChain::new(backend.clone()))
@@ -49,7 +49,7 @@ macro_rules! new_full_start {
4949
.ok_or_else(|| substrate_service::Error::SelectChainRequired)?;
5050

5151
let (grandpa_block_import, grandpa_link) =
52-
grandpa::block_import::<_, _, _, node_template_runtime::RuntimeApi, _, _>(
52+
grandpa::block_import::<_, _, _, runtime::RuntimeApi, _, _>(
5353
client.clone(), &*client, select_chain
5454
)?;
5555

0 commit comments

Comments
 (0)