From 7b0a498e589f18206c02256144fd0d1a75df3172 Mon Sep 17 00:00:00 2001 From: Ranadeep Biswas Date: Wed, 20 Nov 2024 15:18:50 +0100 Subject: [PATCH] store kurtosis engine endpoint --- src/tests/network/ethpkg.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/tests/network/ethpkg.rs b/src/tests/network/ethpkg.rs index ee5736e..8c0bfbc 100644 --- a/src/tests/network/ethpkg.rs +++ b/src/tests/network/ethpkg.rs @@ -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, @@ -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 @@ -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