Skip to content

Commit

Permalink
Use 2000 as default para id
Browse files Browse the repository at this point in the history
  • Loading branch information
skunert committed Jan 11, 2024
1 parent a1cd901 commit 05c06e2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cumulus/test/service/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
use std::{net::SocketAddr, path::PathBuf};

use cumulus_client_cli::{ExportGenesisHeadCommand, ExportGenesisWasmCommand};
use polkadot_service::{ChainSpec, PrometheusConfig};
use polkadot_service::{ChainSpec, ParaId, PrometheusConfig};
use sc_cli::{
CliConfiguration, DefaultConfigurationValues, ImportParams, KeystoreParams, NetworkParams,
Result as CliResult, SharedParams, SubstrateCli,
Expand Down Expand Up @@ -253,7 +253,8 @@ impl SubstrateCli for TestCollatorCli {

fn load_spec(&self, id: &str) -> std::result::Result<Box<dyn sc_service::ChainSpec>, String> {
Ok(match id {
"" => Box::new(cumulus_test_service::get_chain_spec(None)) as Box<_>,
"" =>
Box::new(cumulus_test_service::get_chain_spec(Some(ParaId::from(2000)))) as Box<_>,
path => {
let chain_spec =
cumulus_test_service::chain_spec::ChainSpec::from_json_file(path.into())?;
Expand Down

0 comments on commit 05c06e2

Please sign in to comment.