Skip to content

Commit

Permalink
feat: add arb sepolia test network to evmlib util
Browse files Browse the repository at this point in the history
  • Loading branch information
mickvandijke committed Jan 7, 2025
1 parent 0a7422e commit 8da56e5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions evmlib/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,19 @@ pub fn get_evm_network_from_env() -> Result<Network, Error> {
.map(|v| v == "arbitrum-sepolia")
.unwrap_or(false);

let use_arbitrum_sepolia_test = std::env::var("EVM_NETWORK")
.map(|v| v == "arbitrum-sepolia-test")
.unwrap_or(false);

if use_arbitrum_one {
info!("Using Arbitrum One EVM network as EVM_NETWORK is set to 'arbitrum-one'");
Ok(Network::ArbitrumOne)
} else if use_arbitrum_sepolia {
info!("Using Arbitrum Sepolia EVM network as EVM_NETWORK is set to 'arbitrum-sepolia'");
Ok(Network::ArbitrumSepolia)
} else if use_arbitrum_sepolia_test {
info!("Using Arbitrum Sepolia Test EVM network as EVM_NETWORK is set to 'arbitrum-sepolia-test'");
Ok(Network::ArbitrumSepoliaTest)
} else if let Ok(evm_vars) = evm_vars {
info!("Using custom EVM network from environment variables");
Ok(Network::Custom(CustomNetwork::new(
Expand Down

0 comments on commit 8da56e5

Please sign in to comment.