From 3afbf6cc39c856c9999fb085c1701eac63700c10 Mon Sep 17 00:00:00 2001 From: Warm Beer Date: Mon, 6 Jan 2025 13:41:27 +0100 Subject: [PATCH] feat: add arb sepolia test network to evmlib util --- evmlib/src/utils.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/evmlib/src/utils.rs b/evmlib/src/utils.rs index 4e3133713f..8e679d95d7 100644 --- a/evmlib/src/utils.rs +++ b/evmlib/src/utils.rs @@ -112,12 +112,19 @@ pub fn get_evm_network_from_env() -> Result { .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(