mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-09 12:49:23 +00:00
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:
@@ -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(
|
||||||
|
|||||||
@@ -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"),
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user