mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-30 09:33:36 +00:00
ebc1ba4f38
Extend Blockchainer with one more method to spawn a VM for test runs and use it to run scripts. Gas consumption is not counted or limited in any way at the moment (see #424).
13 lines
306 B
Go
13 lines
306 B
Go
package wrappers
|
|
|
|
import (
|
|
"github.com/CityOfZion/neo-go/pkg/vm"
|
|
)
|
|
|
|
// InvokeResult is used as a wrapper to represent an invokation result.
|
|
type InvokeResult struct {
|
|
State string `json:"state"`
|
|
GasConsumed string `json:"gas_consumed"`
|
|
Script string `json:"script"`
|
|
Stack *vm.Stack
|
|
}
|