aboutsummaryrefslogtreecommitdiffstats
path: root/vm
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-01-12 21:40:40 +0800
committerobscuren <geffobscura@gmail.com>2015-01-12 21:40:40 +0800
commit75cd9cd2de315f8680ff6a382e9b3bd48e17ecad (patch)
tree7bd375c116a705862dfa8a0e32b49e634733d60d /vm
parent00348756bce00c2d19f16ce8df5eff7a62f5cfc6 (diff)
downloadgo-tangerine-75cd9cd2de315f8680ff6a382e9b3bd48e17ecad.tar.gz
go-tangerine-75cd9cd2de315f8680ff6a382e9b3bd48e17ecad.tar.zst
go-tangerine-75cd9cd2de315f8680ff6a382e9b3bd48e17ecad.zip
updated tests
Diffstat (limited to 'vm')
-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++