Skip to content

Commit c213994

Browse files
authored
feat: spelling (#39)
1 parent 9f8e5c0 commit c213994

File tree

3 files changed

+19
-4
lines changed

3 files changed

+19
-4
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ members = ["crates/*"]
33
resolver = "2"
44

55
[workspace.package]
6-
version = "0.11.1"
6+
version = "0.11.2"
77
edition = "2024"
88
rust-version = "1.88"
99
authors = ["init4"]

crates/genesis/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ pub static TEST_GENESIS: LazyLock<Genesis> = LazyLock::new(|| {
3535
});
3636

3737
/// Environment variable for specifying the genesis JSON file path.
38-
const GENSIS_JSON_PATH: &str = "GENSIS_JSON_PATH";
38+
const GENESIS_JSON_PATH: &str = "GENESIS_JSON_PATH";
3939

4040
/// Result type for genesis operations.
4141
pub type Result<T, E = GenesisError> = std::result::Result<T, E>;
@@ -122,7 +122,7 @@ impl FromEnv for GenesisSpec {
122122
optional: true,
123123
},
124124
&EnvItemInfo {
125-
var: GENSIS_JSON_PATH,
125+
var: GENESIS_JSON_PATH,
126126
description: "A filepath to the genesis JSON file. Required if CHAIN_NAME is not set.",
127127
optional: true,
128128
},
@@ -132,7 +132,7 @@ impl FromEnv for GenesisSpec {
132132
fn from_env() -> Result<Self, FromEnvErr<Self::Error>> {
133133
parse_env_if_present::<KnownChains>("CHAIN_NAME")
134134
.map(Into::into)
135-
.or_else(|_| parse_env_if_present::<PathBuf>(GENSIS_JSON_PATH).map(Into::into))
135+
.or_else(|_| parse_env_if_present::<PathBuf>(GENESIS_JSON_PATH).map(Into::into))
136136
}
137137
}
138138

crates/node-config/src/lib.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,18 @@ mod rpc;
1919
/// Test configuration for Signet Nodes.
2020
#[cfg(feature = "test_utils")]
2121
pub mod test_utils;
22+
23+
#[cfg(test)]
24+
mod test {
25+
use init4_bin_base::utils::from_env::FromEnv;
26+
27+
use crate::SignetNodeConfig;
28+
29+
#[test]
30+
fn print_inventory() {
31+
let inventory = SignetNodeConfig::inventory();
32+
for config in inventory {
33+
println!("{config:?}");
34+
}
35+
}
36+
}

0 commit comments

Comments
 (0)