aboutsummaryrefslogtreecommitdiffstats
path: root/ethvm/stack.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-08-08 21:36:59 +0800
committerobscuren <geffobscura@gmail.com>2014-08-08 21:36:59 +0800
commitc51db4c940a5ea679aee580a673a4ccdd2421b9a (patch)
tree5429928dab1acbbc153e756464614bbfc6dbd9c0 /ethvm/stack.go
parent3fc24013ef200f20eaa9deed6647270924126976 (diff)
downloaddexon-c51db4c940a5ea679aee580a673a4ccdd2421b9a.tar
dexon-c51db4c940a5ea679aee580a673a4ccdd2421b9a.tar.gz
dexon-c51db4c940a5ea679aee580a673a4ccdd2421b9a.tar.bz2
dexon-c51db4c940a5ea679aee580a673a4ccdd2421b9a.tar.lz
dexon-c51db4c940a5ea679aee580a673a4ccdd2421b9a.tar.xz
dexon-c51db4c940a5ea679aee580a673a4ccdd2421b9a.tar.zst
dexon-c51db4c940a5ea679aee580a673a4ccdd2421b9a.zip
Fixed stack issue
Diffstat (limited to 'ethvm/stack.go')
-rw-r--r--ethvm/stack.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/ethvm/stack.go b/ethvm/stack.go
index c06d63652..f4b0be393 100644
--- a/ethvm/stack.go
+++ b/ethvm/stack.go
@@ -59,7 +59,7 @@ func (st *Stack) Peek() *big.Int {
}
func (st *Stack) Peekn() (*big.Int, *big.Int) {
- ints := st.data[:2]
+ ints := st.data[len(st.data)-2:]
return ints[0], ints[1]
}