From 86c4f1abc5b595f61ba1db36ec27c5661604eafc Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Thu, 21 May 2020 09:26:31 +0300 Subject: [PATCH] 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. --- pkg/vm/vm.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/vm/vm.go b/pkg/vm/vm.go index ad4c4ebec..ba14f3700 100644 --- a/pkg/vm/vm.go +++ b/pkg/vm/vm.go @@ -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() {