Merge pull request #805 from nspcc-dev/fix-rpc-invocation-json

rpc: fix stack field name for invocation results
This commit is contained in:
Roman Khimov 2020-03-29 13:41:46 +03:00 committed by GitHub
commit 92bafffcd8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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"`
}