From e837c8e683e967663f9d249d3fbfbe92cae4a4b9 Mon Sep 17 00:00:00 2001 From: Warm Beer Date: Tue, 7 Jan 2025 16:17:25 +0100 Subject: [PATCH 1/2] chore: set default evm network to Arbitrum Sepolia --- evmlib/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evmlib/src/lib.rs b/evmlib/src/lib.rs index e2715c0ed6..480ac8270b 100644 --- a/evmlib/src/lib.rs +++ b/evmlib/src/lib.rs @@ -78,8 +78,8 @@ impl CustomNetwork { #[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize)] pub enum Network { - #[default] ArbitrumOne, + #[default] ArbitrumSepolia, Custom(CustomNetwork), } From 22123636f2509a4177f74e5202dc9d1a6f176563 Mon Sep 17 00:00:00 2001 From: Warm Beer Date: Tue, 7 Jan 2025 16:18:30 +0100 Subject: [PATCH 2/2] feat: add `evm_network` field to `ClientConfig` --- autonomi/src/client/mod.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/autonomi/src/client/mod.rs b/autonomi/src/client/mod.rs index b6ddcfbbb9..c60424735a 100644 --- a/autonomi/src/client/mod.rs +++ b/autonomi/src/client/mod.rs @@ -82,6 +82,9 @@ pub struct ClientConfig { /// /// If not provided, the client will use the default bootstrap peers. pub peers: Option>, + + /// EVM network to use for quotations and payments. + pub evm_network: EvmNetwork, } impl Default for ClientConfig { @@ -92,6 +95,7 @@ impl Default for ClientConfig { #[cfg(not(feature = "local"))] local: false, peers: None, + evm_network: Default::default(), } } } @@ -151,6 +155,7 @@ impl Client { Self::init_with_config(ClientConfig { local, peers: Some(peers), + evm_network: Default::default(), }) .await }