aboutsummaryrefslogtreecommitdiffstats
path: root/core/vm/stack.go
diff options
context:
space:
mode:
Diffstat (limited to 'core/vm/stack.go')
-rw-r--r--core/vm/stack.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/vm/stack.go b/core/vm/stack.go
index bb232d0b9..2be5c3dbe 100644
--- a/core/vm/stack.go
+++ b/core/vm/stack.go
@@ -5,7 +5,7 @@ import (
"math/big"
)
-func newStack() *stack {
+func newstack() *stack {
return &stack{}
}
@@ -14,6 +14,10 @@ type stack struct {
ptr int
}
+func (st *stack) Data() []*big.Int {
+ return st.data[:st.ptr]
+}
+
func (st *stack) push(d *big.Int) {
// NOTE push limit (1024) is checked in baseCheck
stackItem := new(big.Int).Set(d)