Moved debug hook to Vm directly

This commit is contained in:
obscuren
2014-07-02 01:04:21 +02:00
parent 1954ef47e6
commit d15952c867
3 changed files with 11 additions and 9 deletions

View File

@@ -261,7 +261,7 @@ func (self *StateTransition) Eval(script []byte, context *StateObject) (ret []by
}
func Call(vm *Vm, closure *Closure, data []byte) (ret []byte, err error, deepErr bool) {
ret, _, err = closure.Call(vm, data, nil)
ret, _, err = closure.Call(vm, data)
deepErr = vm.err != nil
Paranoia := ethutil.Config.Paranoia