File tree Expand file tree Collapse file tree 2 files changed +1
-15
lines changed Expand file tree Collapse file tree 2 files changed +1
-15
lines changed Original file line number Diff line number Diff 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,
Original file line number Diff line number Diff 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}" ) ;
You can’t perform that action at this time.
0 commit comments