Skip to content

Commit

Permalink
refactor spec file path construction
Browse files Browse the repository at this point in the history
  • Loading branch information
nagmo-starkware committed Jul 13, 2023
1 parent f7b0788 commit 10df8a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/papyrus_gateway/src/test_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ pub async fn get_starknet_spec_api_schema(
component_names: &[&str],
version_id: &str,
) -> JSONSchema {
let target = format!("./resources/{}_starknet_api_openrpc.json", version_id);
let target = format!("./resources/{version_id}_starknet_api_openrpc.json");
let text = std::fs::read_to_string(target).unwrap();
let spec: serde_json::Value = serde_json::from_str(&text).unwrap();

Expand Down

0 comments on commit 10df8a0

Please sign in to comment.