From 8f8a0831fc3510a8a08016ffb069ea4afa3d1e35 Mon Sep 17 00:00:00 2001 From: Itay Tsabary Date: Tue, 10 Dec 2024 09:37:53 +0200 Subject: [PATCH] chore(starknet_integration_tests): remove const for json rpc version commit-id:bfb3bef3 --- crates/starknet_integration_tests/src/config_utils.rs | 1 - crates/starknet_integration_tests/src/utils.rs | 6 +----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/crates/starknet_integration_tests/src/config_utils.rs b/crates/starknet_integration_tests/src/config_utils.rs index 90b7471a671..f554ce876a4 100644 --- a/crates/starknet_integration_tests/src/config_utils.rs +++ b/crates/starknet_integration_tests/src/config_utils.rs @@ -58,7 +58,6 @@ pub(crate) fn dump_config_file_changes( required_params.chain_id, required_params.eth_fee_token_address, required_params.strk_fee_token_address, - config.rpc_state_reader_config.json_rpc_version, config.rpc_state_reader_config.url, config.batcher_config.storage.db_config.path_prefix, config.http_server_config.ip, diff --git a/crates/starknet_integration_tests/src/utils.rs b/crates/starknet_integration_tests/src/utils.rs index d1b7b4141f0..5af4e463ca5 100644 --- a/crates/starknet_integration_tests/src/utils.rs +++ b/crates/starknet_integration_tests/src/utils.rs @@ -98,11 +98,7 @@ pub fn create_consensus_manager_configs_and_channels( pub fn test_rpc_state_reader_config(rpc_server_addr: SocketAddr) -> RpcStateReaderConfig { // TODO(Tsabary): get the latest version from the RPC crate. const RPC_SPEC_VERSION: &str = "V0_8"; - const JSON_RPC_VERSION: &str = "2.0"; - RpcStateReaderConfig { - url: format!("http://{rpc_server_addr:?}/rpc/{RPC_SPEC_VERSION}"), - json_rpc_version: JSON_RPC_VERSION.to_string(), - } + RpcStateReaderConfig::from_url(format!("http://{rpc_server_addr:?}/rpc/{RPC_SPEC_VERSION}")) } /// Creates a multi-account transaction generator for integration tests.