mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-24 09:25:21 +00:00
vm: do not use State as a mask
In NEO2 state could be used as a mask, but now it contains only a single value.
This commit is contained in:
parent
063c29636b
commit
86c4f1abc5
1 changed files with 2 additions and 2 deletions
|
@ -338,7 +338,7 @@ func (v *VM) Run() error {
|
|||
// check for breakpoint before executing the next instruction
|
||||
ctx := v.Context()
|
||||
if ctx != nil && ctx.atBreakPoint() {
|
||||
v.state |= breakState
|
||||
v.state = breakState
|
||||
}
|
||||
switch {
|
||||
case v.state.HasFlag(faultState):
|
||||
|
@ -376,7 +376,7 @@ func (v *VM) StepInto() error {
|
|||
ctx := v.Context()
|
||||
|
||||
if ctx == nil {
|
||||
v.state |= haltState
|
||||
v.state = haltState
|
||||
}
|
||||
|
||||
if v.HasStopped() {
|
||||
|
|
Loading…
Reference in a new issue