diff options
author | obscuren <geffobscura@gmail.com> | 2014-12-05 19:32:47 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-12-05 19:32:47 +0800 |
commit | d80f8bda940a8ae8f6dab1502a46054c06cee5cc (patch) | |
tree | 3397c3d58bcef44840de4098c23d5ef93056a7f3 /vm/vm_debug.go | |
parent | 3cf0477c21376b16492cb0b8705b9c7b951e2fb8 (diff) | |
download | dexon-d80f8bda940a8ae8f6dab1502a46054c06cee5cc.tar dexon-d80f8bda940a8ae8f6dab1502a46054c06cee5cc.tar.gz dexon-d80f8bda940a8ae8f6dab1502a46054c06cee5cc.tar.bz2 dexon-d80f8bda940a8ae8f6dab1502a46054c06cee5cc.tar.lz dexon-d80f8bda940a8ae8f6dab1502a46054c06cee5cc.tar.xz dexon-d80f8bda940a8ae8f6dab1502a46054c06cee5cc.tar.zst dexon-d80f8bda940a8ae8f6dab1502a46054c06cee5cc.zip |
Fixed issue in VM where LOG didn't pop anything of the stack
Diffstat (limited to 'vm/vm_debug.go')
-rw-r--r-- | vm/vm_debug.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vm/vm_debug.go b/vm/vm_debug.go index 0a541a769..956a16da2 100644 --- a/vm/vm_debug.go +++ b/vm/vm_debug.go @@ -744,12 +744,12 @@ func (self *DebugVm) Run(me, caller ClosureRef, code []byte, value, gas, price * case LOG0, LOG1, LOG2, LOG3, LOG4: n := int(op - LOG0) topics := make([][]byte, n) - mSize, mStart := stack.Pop().Int64(), stack.Pop().Int64() - data := mem.Geti(mStart, mSize) + mSize, mStart := stack.Popn() for i := 0; i < n; i++ { topics[i] = ethutil.LeftPadBytes(stack.Pop().Bytes(), 32) } + data := mem.Geti(mStart.Int64(), mSize.Int64()) log := &Log{closure.Address(), topics, data} self.env.AddLog(log) |