@@ -40,15 +40,15 @@ async fn test_client_creation_with_test_connection_payload() {
4040 let mut server = Server :: new_async ( ) . await ;
4141 let mock = server
4242 . mock ( "POST" , "/" )
43- . match_body ( r#"{"id":1,"jsonrpc":"2.0","method":"system_chain ","params":[]}"# )
43+ . match_body ( r#"{"id":1,"jsonrpc":"2.0","method":"net_version ","params":[]}"# )
4444 . with_header ( "content-type" , "application/json" )
4545 . with_status ( 200 )
4646 . with_body ( r#"{"jsonrpc":"2.0","id":0,"result":"1"}"# )
4747 . create ( ) ;
4848
4949 let network = create_evm_test_network_with_urls ( vec ! [ & server. url( ) ] ) ;
5050 const TEST_CONNECTION_PAYLOAD : & str =
51- r#"{"id":1,"jsonrpc":"2.0","method":"system_chain ","params":[]}"# ;
51+ r#"{"id":1,"jsonrpc":"2.0","method":"net_version ","params":[]}"# ;
5252
5353 match HttpTransportClient :: new ( & network, Some ( TEST_CONNECTION_PAYLOAD . to_string ( ) ) ) . await {
5454 Ok ( transport) => {
@@ -146,7 +146,7 @@ async fn test_client_try_connect_with_test_connection_payload() {
146146 let mut server = Server :: new_async ( ) . await ;
147147 let mock = server
148148 . mock ( "POST" , "/" )
149- . match_body ( r#"{"id":1,"jsonrpc":"2.0","method":"system_chain ","params":[]}"# )
149+ . match_body ( r#"{"id":1,"jsonrpc":"2.0","method":"net_version ","params":[]}"# )
150150 . with_header ( "content-type" , "application/json" )
151151 . with_status ( 200 )
152152 . with_body ( r#"{"jsonrpc":"2.0","id":0,"result":"1"}"# )
@@ -155,7 +155,7 @@ async fn test_client_try_connect_with_test_connection_payload() {
155155
156156 let network = create_evm_test_network_with_urls ( vec ! [ & server. url( ) ] ) ;
157157 const TEST_CONNECTION_PAYLOAD : & str =
158- r#"{"id":1,"jsonrpc":"2.0","method":"system_chain ","params":[]}"# ;
158+ r#"{"id":1,"jsonrpc":"2.0","method":"net_version ","params":[]}"# ;
159159
160160 let client = HttpTransportClient :: new ( & network, Some ( TEST_CONNECTION_PAYLOAD . to_string ( ) ) )
161161 . await
0 commit comments