Companion for #13701 (#2423)

* Set data_path

* fmt

* Updated substrate and polkadot
This commit is contained in:
Arkadiy Paronyan
2023-05-04 13:34:43 +02:00
committed by GitHub
parent cb0f623d6f
commit 09a0538bc5
5 changed files with 297 additions and 264 deletions
+6 -2
View File
@@ -117,8 +117,12 @@ impl RelayChainCli {
para_config: &sc_service::Configuration,
relay_chain_args: impl Iterator<Item = &'a String>,
) -> Self {
let base_path = para_config.base_path.as_ref().map(|x| x.path().join("polkadot"));
Self { base_path, chain_id: None, base: clap::Parser::parse_from(relay_chain_args) }
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),
}
}
}