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/*"]
33resolver  = " 2" 
44
55[workspace .package ]
6- version  = " 0.11.1 " 
6+ version  = " 0.11.2 " 
77edition  = " 2024" 
88rust-version  = " 1.88" 
99authors  = [" init4" 
Original file line number Diff line number Diff 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. 
4141pub  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
Original file line number Diff line number Diff line change @@ -19,3 +19,18 @@ mod rpc;
1919/// Test configuration for Signet Nodes. 
2020#[ cfg( feature = "test_utils" ) ]  
2121pub  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