Skip to content

Commit b417728

Browse files
committed
chore: Make chain-spec names more concise
1 parent 2414f49 commit b417728

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

standalone/chain/node/src/command.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ impl SubstrateCli for Cli {
5757

5858
fn load_spec(&self, id: &str) -> std::result::Result<Box<dyn sc_service::ChainSpec>, String> {
5959
let spec = match id {
60-
"" | "cess-testnet" => Box::new(chain_spec::cess_testnet_config()),
61-
"cess-initial-devnet" => Box::new(chain_spec::cess_devnet_generate_config()),
62-
"cess-devnet" => Box::new(chain_spec::cess_devnet_config()),
63-
"cess-initial-testnet" => Box::new(chain_spec::cess_testnet()),
60+
"testnet" | "cess-testnet" | "" => Box::new(chain_spec::cess_testnet_config()),
61+
"devnet" | "cess-devnet" => Box::new(chain_spec::cess_devnet_config()),
62+
"initial-devnet" | "cess-initial-devnet" => Box::new(chain_spec::cess_devnet_generate_config()),
63+
"initial-testnet" | "cess-initial-testnet" => Box::new(chain_spec::cess_testnet()),
6464
"dev" => Box::new(chain_spec::development_config()),
6565
"local" => Box::new(chain_spec::local_testnet_config()),
6666
path => Box::new(chain_spec::ChainSpec::from_json_file(std::path::PathBuf::from(path))?),

0 commit comments

Comments
 (0)