rpc: remove json names from result.Invoke struct

We use invokeAux to marshal result.Invoke to JSON.
This commit is contained in:
Anna Shaleva 2020-10-05 16:00:15 +03:00
parent 0e82d4cbd1
commit d27775acc5

View file

@ -9,10 +9,10 @@ import (
// Invoke represents code invocation result and is used by several RPC calls // Invoke represents code invocation result and is used by several RPC calls
// that invoke functions, scripts and generic bytecode. // that invoke functions, scripts and generic bytecode.
type Invoke struct { type Invoke struct {
State string `json:"state"` State string
GasConsumed int64 `json:"gasconsumed,string"` GasConsumed int64
Script string `json:"script"` Script string
Stack []stackitem.Item `json:"stack"` Stack []stackitem.Item
} }
type invokeAux struct { type invokeAux struct {