diff --git a/node-launchpad/src/node_mgmt.rs b/node-launchpad/src/node_mgmt.rs index 3049a3930b..2c3b6205a9 100644 --- a/node-launchpad/src/node_mgmt.rs +++ b/node-launchpad/src/node_mgmt.rs @@ -1,7 +1,7 @@ use crate::action::{Action, StatusActions}; use crate::connection_mode::ConnectionMode; use color_eyre::eyre::{eyre, Error}; -use sn_evm::RewardsAddress; +use sn_evm::{EvmNetwork, RewardsAddress}; use sn_node_manager::{ add_services::config::PortRange, config::get_node_registry_path, VerbosityLevel, }; @@ -291,6 +291,7 @@ async fn scale_down_nodes(config: &NodeConfig, count: u16) { config.data_dir_path.clone(), true, None, + Some(EvmNetwork::ArbitrumSepolia), //FIXME: should come from an UI element. config.home_network, false, None, @@ -365,6 +366,7 @@ async fn add_nodes( config.data_dir_path.clone(), true, None, + Some(EvmNetwork::ArbitrumSepolia), //FIXME: Should come from an UI element config.home_network, false, None, diff --git a/sn_node_manager/src/cmd/node.rs b/sn_node_manager/src/cmd/node.rs index 0c087704d9..7d6a10871a 100644 --- a/sn_node_manager/src/cmd/node.rs +++ b/sn_node_manager/src/cmd/node.rs @@ -22,7 +22,7 @@ use color_eyre::{eyre::eyre, Help, Result}; use colored::Colorize; use libp2p_identity::PeerId; use semver::Version; -use sn_evm::{CustomNetwork, EvmNetwork, RewardsAddress}; +use sn_evm::{EvmNetwork, RewardsAddress}; use sn_logging::LogFormat; use sn_peers_acquisition::PeersArgs; use sn_releases::{ReleaseType, SafeReleaseRepoActions}; @@ -610,6 +610,7 @@ pub async fn maintain_n_running_nodes( data_dir_path: Option, enable_metrics_server: bool, env_variables: Option>, + evm_network: Option, home_network: bool, local: bool, log_dir_path: Option, @@ -714,8 +715,7 @@ pub async fn maintain_n_running_nodes( data_dir_path.clone(), enable_metrics_server, env_variables.clone(), - // FIXME: Hardcoding for demo. Should be fixed!! - Some(EvmNetwork::ArbitrumSepolia), + evm_network.clone(), home_network, local, log_dir_path.clone(),