From 2316e2c4a7cb65559679a5fcf58138e12994ce8c Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Sat, 28 Mar 2020 13:59:42 +0300 Subject: [PATCH] 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 --- pkg/rpc/response/result/invoke.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/rpc/response/result/invoke.go b/pkg/rpc/response/result/invoke.go index d249d06fb..35c7b5548 100644 --- a/pkg/rpc/response/result/invoke.go +++ b/pkg/rpc/response/result/invoke.go @@ -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"` }