core/vm: fixed a bug where Data
ignored the stack ptr
This commit is contained in:
@ -15,7 +15,7 @@ type stack struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (st *stack) Data() []*big.Int {
|
func (st *stack) Data() []*big.Int {
|
||||||
return st.data
|
return st.data[:st.ptr]
|
||||||
}
|
}
|
||||||
|
|
||||||
func (st *stack) push(d *big.Int) {
|
func (st *stack) push(d *big.Int) {
|
||||||
|
Reference in New Issue
Block a user