From f94c5473ad7139e42e22db8e099792638b73de77 Mon Sep 17 00:00:00 2001 From: obscuren Date: Wed, 10 Jun 2015 21:08:04 +0200 Subject: core/vm: fixed a bug where `Data` ignored the stack ptr --- core/vm/stack.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/vm') 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) { -- cgit v1.2.3