diff options
author | obscuren <geffobscura@gmail.com> | 2015-06-11 03:08:04 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-06-11 03:08:04 +0800 |
commit | f94c5473ad7139e42e22db8e099792638b73de77 (patch) | |
tree | 4abac211d795f666c509932de43f66bbf14d429b | |
parent | 10af69b57c8022bb400e1f00bb3c6413e640a7e1 (diff) | |
download | dexon-f94c5473ad7139e42e22db8e099792638b73de77.tar dexon-f94c5473ad7139e42e22db8e099792638b73de77.tar.gz dexon-f94c5473ad7139e42e22db8e099792638b73de77.tar.bz2 dexon-f94c5473ad7139e42e22db8e099792638b73de77.tar.lz dexon-f94c5473ad7139e42e22db8e099792638b73de77.tar.xz dexon-f94c5473ad7139e42e22db8e099792638b73de77.tar.zst dexon-f94c5473ad7139e42e22db8e099792638b73de77.zip |
core/vm: fixed a bug where `Data` ignored the stack ptr
-rw-r--r-- | core/vm/stack.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/vm/stack.go b/core/vm/stack.go index b551de272..2be5c3dbe 100644 --- a/core/vm/stack.go +++ b/core/vm/stack.go @@ -15,7 +15,7 @@ type stack struct { } func (st *stack) Data() []*big.Int { - return st.data + return st.data[:st.ptr] } func (st *stack) push(d *big.Int) { |