diff options
author | obscuren <geffobscura@gmail.com> | 2015-01-12 21:40:40 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-01-12 21:40:40 +0800 |
commit | 75cd9cd2de315f8680ff6a382e9b3bd48e17ecad (patch) | |
tree | 7bd375c116a705862dfa8a0e32b49e634733d60d /vm | |
parent | 00348756bce00c2d19f16ce8df5eff7a62f5cfc6 (diff) | |
download | dexon-75cd9cd2de315f8680ff6a382e9b3bd48e17ecad.tar.gz dexon-75cd9cd2de315f8680ff6a382e9b3bd48e17ecad.tar.zst dexon-75cd9cd2de315f8680ff6a382e9b3bd48e17ecad.zip |
updated tests
Diffstat (limited to 'vm')
-rw-r--r-- | vm/vm_debug.go | 4 |
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++ |