diff options
author | obscuren <geffobscura@gmail.com> | 2014-04-23 21:53:53 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-04-23 21:53:53 +0800 |
commit | c81804444f69ae1653d54551d8555ff924651cd9 (patch) | |
tree | c0c19316adb648eccb9696b1c953531d06a8b11f /ethchain/vm.go | |
parent | ef7f3f36e261bc500016dac0a703c5b7931a1721 (diff) | |
download | go-tangerine-c81804444f69ae1653d54551d8555ff924651cd9.tar go-tangerine-c81804444f69ae1653d54551d8555ff924651cd9.tar.gz go-tangerine-c81804444f69ae1653d54551d8555ff924651cd9.tar.bz2 go-tangerine-c81804444f69ae1653d54551d8555ff924651cd9.tar.lz go-tangerine-c81804444f69ae1653d54551d8555ff924651cd9.tar.xz go-tangerine-c81804444f69ae1653d54551d8555ff924651cd9.tar.zst go-tangerine-c81804444f69ae1653d54551d8555ff924651cd9.zip |
Call initial closure with proper tx argument
Diffstat (limited to 'ethchain/vm.go')
-rw-r--r-- | ethchain/vm.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ethchain/vm.go b/ethchain/vm.go index 33541cb3b..90b591f50 100644 --- a/ethchain/vm.go +++ b/ethchain/vm.go @@ -53,11 +53,12 @@ var isRequireError = false func (vm *Vm) RunClosure(closure *Closure, hook DebugHook) (ret []byte, err error) { // Recover from any require exception defer func() { - if r := recover(); r != nil && isRequireError { + if r := recover(); r != nil /*&& isRequireError*/ { fmt.Println(r) ret = closure.Return(nil) err = fmt.Errorf("%v", r) + fmt.Println("vm err", err) } }() @@ -315,6 +316,7 @@ func (vm *Vm) RunClosure(closure *Closure, hook DebugHook) (ret []byte, err erro case oCALLDATALOAD: require(1) offset := stack.Pop().Int64() + fmt.Println(closure.Args) val := closure.Args[offset : offset+31] stack.Push(ethutil.BigD(val)) |