From 341b093cdd9ee77361e650be007872659cc034fb Mon Sep 17 00:00:00 2001 From: Frank Bell Date: Thu, 8 Aug 2024 07:25:02 +0100 Subject: [PATCH] refactor: add devnet/testnet chain chainspec identifiers --- node/src/command.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/node/src/command.rs b/node/src/command.rs index e6679aa8..b1fcd614 100644 --- a/node/src/command.rs +++ b/node/src/command.rs @@ -64,8 +64,10 @@ impl RuntimeResolver for PathBuf { fn load_spec(id: &str) -> std::result::Result, String> { Ok(match id { - "dev" | "dev-paseo" => Box::new(chain_spec::development_config(Relay::PaseoLocal)), - "test" | "pop-paseo" | "testnet" => Box::new(chain_spec::testnet_config(Relay::Paseo)), + "dev" | "devnet" | "dev-paseo" => { + Box::new(chain_spec::development_config(Relay::PaseoLocal)) + }, + "test" | "testnet" | "pop-paseo" => Box::new(chain_spec::testnet_config(Relay::Paseo)), "" | "local" => Box::new(chain_spec::development_config(Relay::PaseoLocal)), path => { let path: PathBuf = path.into();