Skip to content

Commit

Permalink
chore(starknet_integration_tests): remove const for json rpc version
Browse files Browse the repository at this point in the history
commit-id:bfb3bef3
  • Loading branch information
Itay-Tsabary-Starkware committed Dec 10, 2024
1 parent 58e032b commit f81d39c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion crates/starknet_integration_tests/src/config_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
6 changes: 1 addition & 5 deletions crates/starknet_integration_tests/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit f81d39c

Please sign in to comment.