aboutsummaryrefslogtreecommitdiffstats
path: root/vm/vm_debug.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-11-12 05:51:26 +0800
committerobscuren <geffobscura@gmail.com>2014-11-12 05:52:27 +0800
commit6c9e503eb8d41d331d6a74e69539a06590072190 (patch)
treeb9fd4b7abf20d9a901cd4e0f2dc3d70475cdc527 /vm/vm_debug.go
parent75ee3b3f089e703b728bb301cc6b2abe4c111c41 (diff)
downloadgo-tangerine-6c9e503eb8d41d331d6a74e69539a06590072190.tar.gz
go-tangerine-6c9e503eb8d41d331d6a74e69539a06590072190.tar.zst
go-tangerine-6c9e503eb8d41d331d6a74e69539a06590072190.zip
Removed all implicit logging. Fixed gas issues and jump errors
Diffstat (limited to 'vm/vm_debug.go')
-rw-r--r--vm/vm_debug.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/vm/vm_debug.go b/vm/vm_debug.go
index 2d34758f5..290eddda4 100644
--- a/vm/vm_debug.go
+++ b/vm/vm_debug.go
@@ -47,6 +47,8 @@ func (self *DebugVm) RunClosure(closure *Closure) (ret []byte, err error) {
if r := recover(); r != nil {
self.Endl()
+ closure.UseGas(closure.Gas)
+
ret = closure.Return(nil)
err = fmt.Errorf("%v", r)
@@ -735,7 +737,7 @@ func (self *DebugVm) RunClosure(closure *Closure) (ret []byte, err error) {
for i := 0; i < n; i++ {
topics[i] = stack.Pop().Bytes()
}
- self.env.AddLog(state.Log{closure.Address(), topics, data})
+ self.env.AddLog(&state.Log{closure.Address(), topics, data})
case MLOAD:
offset := stack.Pop()
val := ethutil.BigD(mem.Get(offset.Int64(), 32))