neo-go/pkg/rpc/request
Anna Shaleva aa3a5fc492 rpc: adjust script creation with empty parameters list
Always use NEWARRAY0 where possible, see
26d04a642a/src/neo/VM/Helper.cs (L41).

Compatibility is tested:
```
anna@kiwi:~/Documents/GitProjects/nspcc-dev/neo-go$ curl -d '{ "jsonrpc": "2.0", "id": 1, "method": "invokefunction", "params": ["50befd26fdf6e4d957c11e078b24ebce6291456f", "a", [] ]}' seed1.neo.org:10332 | json_pp
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   370    0   248  100   122    127     62  0:00:01  0:00:01 --:--:--   190
{
   "result" : {
      "notifications" : [],
      "stack" : [],
      "script" : "wh8MAWEMFG9FkWLO6ySLBx7BV9nk9v0m/b5QQWJ9W1I=",
      "gasconsumed" : "98403",
      "state" : "FAULT",
      "exception" : "Called Contract Does Not Exist: 0x50befd26fdf6e4d957c11e078b24ebce6291456f"
   },
   "jsonrpc" : "2.0",
   "id" : 1
}
```
2022-06-24 12:37:22 +03:00
..
param.go [#2442] English Check 2022-05-04 19:48:27 +03:00
param_test.go rpc: support big integers as request parameters 2022-02-11 12:48:54 +03:00
params.go rpc: *In parameters marshalling optimisation 2021-11-10 14:42:08 +03:00
tx_builder_test.go rpc: adjust script creation with empty parameters list 2022-06-24 12:37:22 +03:00
txBuilder.go rpc: adjust script creation with empty parameters list 2022-06-24 12:37:22 +03:00
types.go [#2442] English Check 2022-05-04 19:48:27 +03:00
types_test.go rpc/request: add unmarshal benchmark 2021-11-01 17:21:04 +03:00