--- a/node/cli/src/chain_spec.rs +++ b/node/cli/src/chain_spec.rs @@ -187,21 +187,33 @@ }}; } -pub fn development_config() -> OpalChainSpec { +pub fn development_config() -> DefaultChainSpec { let mut properties = Map::new(); - properties.insert("tokenSymbol".into(), opal_runtime::TOKEN_SYMBOL.into()); + properties.insert("tokenSymbol".into(), default_runtime::TOKEN_SYMBOL.into()); properties.insert("tokenDecimals".into(), 18.into()); - properties.insert("ss58Format".into(), opal_runtime::SS58Prefix::get().into()); + properties.insert( + "ss58Format".into(), + default_runtime::SS58Prefix::get().into(), + ); - OpalChainSpec::from_genesis( + DefaultChainSpec::from_genesis( // Name - "OPAL by UNIQUE", + format!( + "{}{}", + default_runtime::RUNTIME_NAME.to_uppercase(), + if cfg!(feature = "unique-runtime") { + "" + } else { + " by UNIQUE" + } + ) + .as_str(), // ID - "opal_dev", + format!("{}_dev", default_runtime::RUNTIME_NAME).as_str(), ChainType::Local, move || { testnet_genesis!( - opal_runtime, + default_runtime, // Sudo account get_account_id_from_seed::("Alice"), vec![