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 15, 2024
1 parent f29ebe5 commit 2d7e21e
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 @@ -60,7 +60,6 @@ pub(crate) fn dump_config_file_changes(
required_params.eth_fee_token_address,
required_params.strk_fee_token_address,
required_params.validator_id,
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 @@ -128,11 +128,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 2d7e21e

Please sign in to comment.