File tree Expand file tree Collapse file tree 3 files changed +19
-4
lines changed Expand file tree Collapse file tree 3 files changed +19
-4
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ members = ["crates/*"]
3
3
resolver = " 2"
4
4
5
5
[workspace .package ]
6
- version = " 0.11.1 "
6
+ version = " 0.11.2 "
7
7
edition = " 2024"
8
8
rust-version = " 1.88"
9
9
authors = [" init4" ]
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ pub static TEST_GENESIS: LazyLock<Genesis> = LazyLock::new(|| {
35
35
} ) ;
36
36
37
37
/// 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 " ;
39
39
40
40
/// Result type for genesis operations.
41
41
pub type Result < T , E = GenesisError > = std:: result:: Result < T , E > ;
@@ -122,7 +122,7 @@ impl FromEnv for GenesisSpec {
122
122
optional: true ,
123
123
} ,
124
124
& EnvItemInfo {
125
- var: GENSIS_JSON_PATH ,
125
+ var: GENESIS_JSON_PATH ,
126
126
description: "A filepath to the genesis JSON file. Required if CHAIN_NAME is not set." ,
127
127
optional: true ,
128
128
} ,
@@ -132,7 +132,7 @@ impl FromEnv for GenesisSpec {
132
132
fn from_env ( ) -> Result < Self , FromEnvErr < Self :: Error > > {
133
133
parse_env_if_present :: < KnownChains > ( "CHAIN_NAME" )
134
134
. 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) )
136
136
}
137
137
}
138
138
Original file line number Diff line number Diff line change @@ -19,3 +19,18 @@ mod rpc;
19
19
/// Test configuration for Signet Nodes.
20
20
#[ cfg( feature = "test_utils" ) ]
21
21
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
+ }
You can’t perform that action at this time.
0 commit comments