Skip to content

Commit

Permalink
Merge pull request #2609 from mickvandijke/feat-evm-network-in-client…
Browse files Browse the repository at this point in the history
…-config

Add evm network in client config
  • Loading branch information
mickvandijke authored Jan 7, 2025
2 parents 441081c + 2212363 commit ac85238
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions autonomi/src/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ pub struct ClientConfig {
///
/// If not provided, the client will use the default bootstrap peers.
pub peers: Option<Vec<Multiaddr>>,

/// EVM network to use for quotations and payments.
pub evm_network: EvmNetwork,
}

impl Default for ClientConfig {
Expand All @@ -92,6 +95,7 @@ impl Default for ClientConfig {
#[cfg(not(feature = "local"))]
local: false,
peers: None,
evm_network: Default::default(),
}
}
}
Expand Down Expand Up @@ -151,6 +155,7 @@ impl Client {
Self::init_with_config(ClientConfig {
local,
peers: Some(peers),
evm_network: Default::default(),
})
.await
}
Expand Down
2 changes: 1 addition & 1 deletion evmlib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ impl CustomNetwork {

#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize)]
pub enum Network {
#[default]
ArbitrumOne,
#[default]
ArbitrumSepolia,
ArbitrumSepoliaTest,
Custom(CustomNetwork),
Expand Down

0 comments on commit ac85238

Please sign in to comment.