rpc: fix stack field name for invocation results

Follow C# implementation:
https://docs.neo.org/docs/en-us/reference/rpc/latest-version/api/invokefunction.html
This commit is contained in:
Roman Khimov 2020-03-28 13:59:42 +03:00
parent 198fffb9b8
commit 2316e2c4a7

View file

@ -7,8 +7,8 @@ import (
// Invoke represents code invocation result and is used by several RPC calls
// that invoke functions, scripts and generic bytecode.
type Invoke struct {
State string `json:"state"`
GasConsumed string `json:"gas_consumed"`
Script string `json:"script"`
Stack []smartcontract.Parameter
State string `json:"state"`
GasConsumed string `json:"gas_consumed"`
Script string `json:"script"`
Stack []smartcontract.Parameter `json:"stack"`
}