File tree 2 files changed +1
-15
lines changed
2 files changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -215,7 +215,7 @@ jobs:
215
215
staking_batch_payout,
216
216
subscribe_events,
217
217
sudo,
218
- unstable_rpc_api_calls ,
218
+ new_json_rpc_api_calls ,
219
219
transfer_with_tungstenite_client,
220
220
transfer_with_ws_client,
221
221
author_tests,
Original file line number Diff line number Diff line change @@ -48,25 +48,11 @@ async fn main() {
48
48
let json_string = serde_json:: to_string ( & json_value) . unwrap ( ) ;
49
49
println ! ( "Available methods: {json_string} \n " ) ;
50
50
51
- // Since it's an unstable api and might change anytime, we first check if our calls are still
52
- // available:
53
51
let chain_name_request = "chainSpec_v1_chainName" ;
54
52
let chain_genesis_hash_request = "chainSpec_v1_genesisHash" ;
55
53
let transaction_submit_watch = "transactionWatch_v1_submitAndWatch" ;
56
54
let transaction_unwatch = "transactionWatch_v1_unwatch" ;
57
55
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
-
70
56
// Submit the above defiend rpc requests:
71
57
let chain_name: String = api. client ( ) . request ( chain_name_request, rpc_params ! [ ] ) . await . unwrap ( ) ;
72
58
println ! ( "Our chain is called: {chain_name}" ) ;
You can’t perform that action at this time.
0 commit comments