Skip to content

Commit

Permalink
fix(JSON-RPC): merge fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nagmo-starkware committed Aug 2, 2023
1 parent d87233d commit 92ce648
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
10 changes: 7 additions & 3 deletions crates/papyrus_gateway/src/v0_3_0/api/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1732,9 +1732,13 @@ async fn validate_transaction(
.await;
assert!(validate_schema(schema, res), "Transaction receipt is not valid.");

let res =
send_request(server_address, "starknet_getEvents", r#"{"chunk_size": 2}"#, VERSION_0_3_0)
.await;
let res = send_request(
server_address,
"starknet_getEvents",
r#"{"chunk_size": 2}"#,
VERSION_0_3.name,
)
.await;
assert!(validate_schema(schema, res), "Events are not valid.");
}

Expand Down
10 changes: 7 additions & 3 deletions crates/papyrus_gateway/src/v0_4_0/api/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1735,9 +1735,13 @@ async fn validate_transaction(
.await;
assert!(validate_schema(schema, res), "Transaction receipt is not valid.");

let res =
send_request(server_address, "starknet_getEvents", r#"{"chunk_size": 2}"#, VERSION_0_4_0)
.await;
let res = send_request(
server_address,
"starknet_getEvents",
r#"{"chunk_size": 2}"#,
VERSION_0_4.name,
)
.await;
assert!(validate_schema(schema, res), "Events are not valid.");
}

Expand Down

0 comments on commit 92ce648

Please sign in to comment.