Skip to content

Commit

Permalink
refactor: add devnet/testnet chain chainspec identifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
evilrobot-01 committed Aug 8, 2024
1 parent 7be1434 commit 341b093
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions node/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,10 @@ impl RuntimeResolver for PathBuf {

fn load_spec(id: &str) -> std::result::Result<Box<dyn ChainSpec>, 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();
Expand Down

0 comments on commit 341b093

Please sign in to comment.