mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-05-03 11:41:48 +00:00
make State a set as in reference C# implementation (#123)
* make State a set as in reference C# implementation * fix issues
This commit is contained in:
parent
001a0e601e
commit
57cb289bcd
4 changed files with 161 additions and 20 deletions
|
@ -1,6 +1,9 @@
|
|||
package rpc
|
||||
|
||||
import "github.com/CityOfZion/neo-go/pkg/core/transaction"
|
||||
import (
|
||||
"github.com/CityOfZion/neo-go/pkg/core/transaction"
|
||||
"github.com/CityOfZion/neo-go/pkg/vm"
|
||||
)
|
||||
|
||||
type InvokeScriptResponse struct {
|
||||
responseHeader
|
||||
|
@ -11,9 +14,9 @@ type InvokeScriptResponse struct {
|
|||
// InvokeResult represents the outcome of a script that is
|
||||
// executed by the NEO VM.
|
||||
type InvokeResult struct {
|
||||
State string `json:"state"`
|
||||
GasConsumed string `json:"gas_consumed"`
|
||||
Script string `json:"script"`
|
||||
State vm.State `json:"state"`
|
||||
GasConsumed string `json:"gas_consumed"`
|
||||
Script string `json:"script"`
|
||||
Stack []StackParam
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue