Skip to content
Snippets Groups Projects
Commit 2bdf2412 authored by Cédric Moreau's avatar Cédric Moreau
Browse files

fix: DUNITER_CLIENT_SPEC for both GDev and GTest currencies

parent 5e15335f
No related branches found
No related tags found
1 merge request!195Prepare GDev parameters
Pipeline #34307 failed
...@@ -109,7 +109,7 @@ impl SubstrateCli for Cli { ...@@ -109,7 +109,7 @@ impl SubstrateCli for Cli {
const CLIENT_SPEC: &str = "./node/specs/gdev_client-specs.yaml"; const CLIENT_SPEC: &str = "./node/specs/gdev_client-specs.yaml";
let client_spec: chain_spec::gdev::ClientSpec = serde_yaml::from_slice( let client_spec: chain_spec::gdev::ClientSpec = serde_yaml::from_slice(
&std::fs::read( &std::fs::read(
std::env::var("DUNITER_GTEST_CLIENT_SPEC") std::env::var("DUNITER_CLIENT_SPEC")
.unwrap_or_else(|_| CLIENT_SPEC.to_string()), .unwrap_or_else(|_| CLIENT_SPEC.to_string()),
) )
.map_err(|e| format!("failed to read {CLIENT_SPEC} {e}"))?[..], .map_err(|e| format!("failed to read {CLIENT_SPEC} {e}"))?[..],
...@@ -144,7 +144,7 @@ impl SubstrateCli for Cli { ...@@ -144,7 +144,7 @@ impl SubstrateCli for Cli {
const JSON_CLIENT_SPEC: &str = "./node/specs/gtest_client-specs.yaml"; const JSON_CLIENT_SPEC: &str = "./node/specs/gtest_client-specs.yaml";
let client_spec: gtest::ClientSpec = serde_yaml::from_slice( let client_spec: gtest::ClientSpec = serde_yaml::from_slice(
&std::fs::read( &std::fs::read(
std::env::var("DUNITER_GTEST_CLIENT_SPEC") std::env::var("DUNITER_CLIENT_SPEC")
.unwrap_or_else(|_| JSON_CLIENT_SPEC.to_string()), .unwrap_or_else(|_| JSON_CLIENT_SPEC.to_string()),
) )
.map_err(|e| format!("failed to read {JSON_CLIENT_SPEC} {e}"))?[..], .map_err(|e| format!("failed to read {JSON_CLIENT_SPEC} {e}"))?[..],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment