diff --git a/Cargo.toml b/Cargo.toml index 6a04ec7..a2c27e2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ members = ["crates/*"] resolver = "2" [workspace.package] -version = "0.11.1" +version = "0.11.2" edition = "2024" rust-version = "1.88" authors = ["init4"] diff --git a/crates/genesis/src/lib.rs b/crates/genesis/src/lib.rs index 76c61af..9391c34 100644 --- a/crates/genesis/src/lib.rs +++ b/crates/genesis/src/lib.rs @@ -35,7 +35,7 @@ pub static TEST_GENESIS: LazyLock = LazyLock::new(|| { }); /// Environment variable for specifying the genesis JSON file path. -const GENSIS_JSON_PATH: &str = "GENSIS_JSON_PATH"; +const GENESIS_JSON_PATH: &str = "GENESIS_JSON_PATH"; /// Result type for genesis operations. pub type Result = std::result::Result; @@ -122,7 +122,7 @@ impl FromEnv for GenesisSpec { optional: true, }, &EnvItemInfo { - var: GENSIS_JSON_PATH, + var: GENESIS_JSON_PATH, description: "A filepath to the genesis JSON file. Required if CHAIN_NAME is not set.", optional: true, }, @@ -132,7 +132,7 @@ impl FromEnv for GenesisSpec { fn from_env() -> Result> { parse_env_if_present::("CHAIN_NAME") .map(Into::into) - .or_else(|_| parse_env_if_present::(GENSIS_JSON_PATH).map(Into::into)) + .or_else(|_| parse_env_if_present::(GENESIS_JSON_PATH).map(Into::into)) } } diff --git a/crates/node-config/src/lib.rs b/crates/node-config/src/lib.rs index 99a8f3c..857d208 100644 --- a/crates/node-config/src/lib.rs +++ b/crates/node-config/src/lib.rs @@ -19,3 +19,18 @@ mod rpc; /// Test configuration for Signet Nodes. #[cfg(feature = "test_utils")] pub mod test_utils; + +#[cfg(test)] +mod test { + use init4_bin_base::utils::from_env::FromEnv; + + use crate::SignetNodeConfig; + + #[test] + fn print_inventory() { + let inventory = SignetNodeConfig::inventory(); + for config in inventory { + println!("{config:?}"); + } + } +}