Skip to content

Commit

Permalink
store kurtosis engine endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
rnbguy committed Nov 20, 2024
1 parent 43ef9bd commit 7b0a498
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/tests/network/ethpkg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ use testresult::TestResult;

#[derive(Builder, Debug)]
pub struct EthPkgKurtosis {
#[builder(default = SocketAddr::new(Ipv4Addr::UNSPECIFIED.into(), 9710))]
pub kurtosis_engine_endpoint: SocketAddr,
#[builder(default = "ethpkg".into())]
pub enclave_name: String,
pub el_socket: Option<SocketAddr>,
Expand Down Expand Up @@ -69,7 +71,7 @@ impl EthereumNetwork for EthPkgKurtosis {

// CONNECT TO ENGINE
let mut engine =
EngineServiceClient::connect(format!("http://{}:{}", Ipv4Addr::UNSPECIFIED, 9710))
EngineServiceClient::connect(format!("http://{}", self.kurtosis_engine_endpoint))
.await?;

// CREATE ENCLAVE
Expand Down Expand Up @@ -208,7 +210,7 @@ impl EthereumNetwork for EthPkgKurtosis {

// CONNECT TO ENGINE
let mut engine =
EngineServiceClient::connect(format!("http://{}:{}", Ipv4Addr::UNSPECIFIED, 9710))
EngineServiceClient::connect(format!("http://{}", self.kurtosis_engine_endpoint))
.await?;

// DESTROY ENCLAVE
Expand Down

0 comments on commit 7b0a498

Please sign in to comment.