Skip to content

Commit

Permalink
fix env
Browse files Browse the repository at this point in the history
  • Loading branch information
rnbguy committed Nov 22, 2024
1 parent cff888d commit 8babf58
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions src/tests/network/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,23 @@ impl EthereumNetwork for EnvNetwork {

fn network_config(&self) -> EthereumConfig {
EthereumConfig {
el_socket: env!("EL_SOCKET").parse().unwrap(),
cl_socket: Some(env!("CL_SOCKET").parse().unwrap()),
mnemonics: vec![env!("MNEMONIC").to_string()],
block_time: env!("BLOCK_TIME").parse().unwrap(),
el_socket: std::env::var("EL_SOCKET")
.expect("missing EL_SOCKET")
.parse()
.unwrap(),
cl_socket: Some(
std::env::var("CL_SOCKET")
.expect("missing CL_SOCKET")
.parse()
.unwrap(),
),
mnemonics: vec![std::env::var("MNEMONIC")
.expect("missing MNEMONIC")
.to_string()],
block_time: std::env::var("BLOCK_TIME")
.expect("missing BLOCK_TIME")
.parse()
.unwrap(),
}
}

Expand Down

0 comments on commit 8babf58

Please sign in to comment.