Skip to content

Commit feafbab

Browse files
authored
- Change the file name as the calls are not unstable anymore (#798)
- Given that the calls are stable we don't need to verify that they exist
1 parent 3453973 commit feafbab

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ jobs:
215215
staking_batch_payout,
216216
subscribe_events,
217217
sudo,
218-
unstable_rpc_api_calls,
218+
new_json_rpc_api_calls,
219219
transfer_with_tungstenite_client,
220220
transfer_with_ws_client,
221221
author_tests,

examples/async/examples/unstable_rpc_api_calls.rs renamed to examples/async/examples/new_json_rpc_api_calls.rs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -48,25 +48,11 @@ async fn main() {
4848
let json_string = serde_json::to_string(&json_value).unwrap();
4949
println!("Available methods: {json_string} \n");
5050

51-
// Since it's an unstable api and might change anytime, we first check if our calls are still
52-
// available:
5351
let chain_name_request = "chainSpec_v1_chainName";
5452
let chain_genesis_hash_request = "chainSpec_v1_genesisHash";
5553
let transaction_submit_watch = "transactionWatch_v1_submitAndWatch";
5654
let transaction_unwatch = "transactionWatch_v1_unwatch";
5755

58-
let request_vec = [
59-
chain_name_request,
60-
chain_genesis_hash_request,
61-
transaction_submit_watch,
62-
transaction_unwatch,
63-
];
64-
for request in request_vec {
65-
if !json_string.contains(request) {
66-
panic!("Api has changed, please update the call {request}.");
67-
}
68-
}
69-
7056
// Submit the above defiend rpc requests:
7157
let chain_name: String = api.client().request(chain_name_request, rpc_params![]).await.unwrap();
7258
println!("Our chain is called: {chain_name}");

0 commit comments

Comments
 (0)