aboutsummaryrefslogtreecommitdiffstats
path: root/vm/vm_debug.go
diff options
context:
space:
mode:
Diffstat (limited to 'vm/vm_debug.go')
-rw-r--r--vm/vm_debug.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/vm/vm_debug.go b/vm/vm_debug.go
index eec8c518f..fee42d3d8 100644
--- a/vm/vm_debug.go
+++ b/vm/vm_debug.go
@@ -743,9 +743,7 @@ func (self *DebugVm) Run(me, caller ContextRef, code []byte, value, gas, price *
default:
vmlogger.Debugf("(pc) %-3v Invalid opcode %x\n", pc, op)
- context.ReturnGas(big.NewInt(1), nil)
-
- return context.Return(nil), fmt.Errorf("Invalid opcode %x", op)
+ panic(fmt.Errorf("Invalid opcode %x", op))
}
pc++