rpc: adjust getversion RPC-call JSON fields names

Part of #1130
This commit is contained in:
Anna Shaleva 2020-07-09 16:53:07 +03:00
parent 538616e9f8
commit 48ccdb09d4
2 changed files with 4 additions and 4 deletions

View file

@ -602,7 +602,7 @@ var rpcClientTestCases = map[string][]rpcClientTestCase{
invoke: func(c *Client) (interface{}, error) {
return c.GetVersion()
},
serverResponse: `{"id":1,"jsonrpc":"2.0","result":{"tcp_port":20332,"ws_port":20342,"nonce":2153672787,"user_agent":"/NEO-GO:0.73.1-pre-273-ge381358/"}}`,
serverResponse: `{"id":1,"jsonrpc":"2.0","result":{"tcpport":20332,"wsport":20342,"nonce":2153672787,"useragent":"/NEO-GO:0.73.1-pre-273-ge381358/"}}`,
result: func(c *Client) interface{} {
return &result.Version{
TCPPort: uint16(20332),