mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 02:17:58 +00:00
Make network_config_path an Option (#5661)
* Make network_config_path an Option * Fix network tests * Use None as the network config path * Fix cli * Don't make PathBuf an Option in a cli context
This commit is contained in:
@@ -110,7 +110,7 @@ pub trait CliConfiguration: Sized {
|
||||
&self,
|
||||
chain_spec: &Box<dyn ChainSpec>,
|
||||
is_dev: bool,
|
||||
net_config_dir: &PathBuf,
|
||||
net_config_dir: PathBuf,
|
||||
client_id: &str,
|
||||
node_name: &str,
|
||||
node_key: NodeKeyConfig,
|
||||
@@ -119,7 +119,7 @@ pub trait CliConfiguration: Sized {
|
||||
network_params.network_config(
|
||||
chain_spec,
|
||||
is_dev,
|
||||
net_config_dir,
|
||||
Some(net_config_dir),
|
||||
client_id,
|
||||
node_name,
|
||||
node_key,
|
||||
@@ -129,7 +129,7 @@ pub trait CliConfiguration: Sized {
|
||||
node_name,
|
||||
client_id,
|
||||
node_key,
|
||||
net_config_dir,
|
||||
Some(net_config_dir),
|
||||
)
|
||||
})
|
||||
}
|
||||
@@ -405,7 +405,7 @@ pub trait CliConfiguration: Sized {
|
||||
network: self.network_config(
|
||||
&chain_spec,
|
||||
is_dev,
|
||||
&net_config_dir,
|
||||
net_config_dir,
|
||||
client_id.as_str(),
|
||||
self.node_name()?.as_str(),
|
||||
node_key,
|
||||
|
||||
Reference in New Issue
Block a user