Rename dev to devnet

--dev still works thanks to the |. Acheieves a personal preference of 
mine with some historical meaning.
This commit is contained in:
Luke Parker
2022-11-02 23:32:52 -04:00
parent 131355b10f
commit 63df908d3b
2 changed files with 2 additions and 2 deletions

View File

@@ -45,7 +45,7 @@ pub fn development_config() -> Result<ChainSpec, &'static str> {
// Name // Name
"Development Network", "Development Network",
// ID // ID
"dev", "devnet",
ChainType::Development, ChainType::Development,
|| { || {
testnet_genesis( testnet_genesis(

View File

@@ -38,7 +38,7 @@ impl SubstrateCli for Cli {
fn load_spec(&self, id: &str) -> Result<Box<dyn sc_service::ChainSpec>, String> { fn load_spec(&self, id: &str) -> Result<Box<dyn sc_service::ChainSpec>, String> {
match id { match id {
"dev" => Ok(Box::new(chain_spec::development_config()?)), "dev" | "devnet" => Ok(Box::new(chain_spec::development_config()?)),
"local" => Ok(Box::new(chain_spec::testnet_config()?)), "local" => Ok(Box::new(chain_spec::testnet_config()?)),
_ => panic!("Unknown network ID"), _ => panic!("Unknown network ID"),
} }