Skip to content

Commit

Permalink
feat: add evm_network field to ClientConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
mickvandijke committed Jan 7, 2025
1 parent e837c8e commit 2212363
Showing 1 changed file with 5 additions and 0 deletions.
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

0 comments on commit 2212363

Please sign in to comment.