Commit f94c5473 authored by obscuren's avatar obscuren

core/vm: fixed a bug where `Data` ignored the stack ptr

parent 10af69b5
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment