Skip to content
Snippets Groups Projects
Commit 43460507 authored by Éloïs's avatar Éloïs
Browse files

spec: handle currency name gdem

parent 9bc16904
No related branches found
No related tags found
No related merge requests found
......@@ -66,7 +66,7 @@ impl SubstrateCli for Cli {
if starts_with("g1") {
Box::new(chain_spec::g1::ChainSpec::from_json_file(path)?)
} else if starts_with("gtest") {
} else if starts_with("gdem") || starts_with("gtest") {
Box::new(chain_spec::gtest::ChainSpec::from_json_file(path)?)
} else if starts_with("gdev") {
Box::new(chain_spec::gdev::ChainSpec::from_json_file(path)?)
......
......@@ -114,7 +114,7 @@ impl IdentifyVariant for Box<dyn sc_chain_spec::ChainSpec> {
}
fn is_test(&self) -> bool {
self.id().starts_with("gtest")
self.id().starts_with("gdem") || self.id().starts_with("gtest")
}
fn is_dev(&self) -> bool {
......
......@@ -94,8 +94,8 @@ pub mod opaque {
// https://substrate.dev/docs/en/knowledgebase/runtime/upgrades#runtime-versioning
#[sp_version::runtime_version]
pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("gtest"),
impl_name: create_runtime_str!("gtest"),
spec_name: create_runtime_str!("gdem"),
impl_name: create_runtime_str!("gdem"),
authoring_version: 1,
// The version of the runtime specification. A full node will not attempt to use its native
// runtime in substitute for the on-chain Wasm runtime unless all of `spec_name`,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment