Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
arkpar committed Apr 25, 2023
1 parent fd2e7b8 commit 36bb905
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
6 changes: 5 additions & 1 deletion parachain-template/node/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ impl RelayChainCli {
let extension = crate::chain_spec::Extensions::try_get(&*para_config.chain_spec);
let chain_id = extension.map(|e| e.relay_chain.clone());
let base_path = para_config.base_path.path().join("polkadot");
Self { base_path: Some(base_path), chain_id, base: clap::Parser::parse_from(relay_chain_args) }
Self {
base_path: Some(base_path),
chain_id,
base: clap::Parser::parse_from(relay_chain_args),
}
}
}
6 changes: 5 additions & 1 deletion polkadot-parachain/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,10 @@ impl RelayChainCli {
let extension = crate::chain_spec::Extensions::try_get(&*para_config.chain_spec);
let chain_id = extension.map(|e| e.relay_chain.clone());
let base_path = para_config.base_path.path().join("polkadot");
Self { base_path: Some(base_path), chain_id, base: clap::Parser::parse_from(relay_chain_args) }
Self {
base_path: Some(base_path),
chain_id,
base: clap::Parser::parse_from(relay_chain_args),
}
}
}
6 changes: 5 additions & 1 deletion test/service/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,11 @@ impl RelayChainCli {
relay_chain_args: impl Iterator<Item = &'a String>,
) -> Self {
let base_path = para_config.base_path.path().join("polkadot");
Self { base_path: Some(base_path), chain_id: None, base: clap::Parser::parse_from(relay_chain_args) }
Self {
base_path: Some(base_path),
chain_id: None,
base: clap::Parser::parse_from(relay_chain_args),
}
}
}

Expand Down

0 comments on commit 36bb905

Please sign in to comment.