Skip to content

Commit

Permalink
remove duplicated config file
Browse files Browse the repository at this point in the history
  • Loading branch information
tomyrd committed Jan 29, 2025
1 parent 67186c4 commit 7c9eefe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
7 changes: 0 additions & 7 deletions bin/miden-cli/config/miden-client-rpc.toml

This file was deleted.

7 changes: 2 additions & 5 deletions tests/integration/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ pub const ACCOUNT_ID_REGULAR: u128 = ACCOUNT_ID_REGULAR_ACCOUNT_UPDATABLE_CODE_O

pub type TestClient = Client<RpoRandomCoin>;

pub const TEST_CLIENT_RPC_CONFIG_FILE_PATH: &str = "./config/miden-client-rpc.toml";
pub const TEST_CLIENT_RPC_CONFIG_FILE: &str = include_str!("../config/miden-client-rpc.toml");
/// Creates a `TestClient`.
///
/// Creates the client using the config at `TEST_CLIENT_CONFIG_FILE_PATH`. The store's path is at a
Expand Down Expand Up @@ -67,10 +67,7 @@ pub async fn create_test_client() -> TestClient {
}

pub fn get_client_config() -> (Endpoint, u64, PathBuf) {
let rpc_config_toml = std::fs::read_to_string(TEST_CLIENT_RPC_CONFIG_FILE_PATH)
.unwrap()
.parse::<Table>()
.unwrap();
let rpc_config_toml = TEST_CLIENT_RPC_CONFIG_FILE.parse::<Table>().unwrap();
let rpc_endpoint_toml = rpc_config_toml["endpoint"].as_table().unwrap();

let protocol = rpc_endpoint_toml["protocol"].as_str().unwrap().to_string();
Expand Down

0 comments on commit 7c9eefe

Please sign in to comment.