aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/stack.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-04-12 01:29:57 +0800
committerobscuren <geffobscura@gmail.com>2014-04-12 01:29:57 +0800
commit116516158da637cde50d27d600db6661732fc402 (patch)
tree534568c2794911502058ff15e7176e2d84f29420 /ethchain/stack.go
parentca747f268800590ee855b1ce593b61e95d073311 (diff)
downloaddexon-116516158da637cde50d27d600db6661732fc402.tar
dexon-116516158da637cde50d27d600db6661732fc402.tar.gz
dexon-116516158da637cde50d27d600db6661732fc402.tar.bz2
dexon-116516158da637cde50d27d600db6661732fc402.tar.lz
dexon-116516158da637cde50d27d600db6661732fc402.tar.xz
dexon-116516158da637cde50d27d600db6661732fc402.tar.zst
dexon-116516158da637cde50d27d600db6661732fc402.zip
Renamed
Diffstat (limited to 'ethchain/stack.go')
-rw-r--r--ethchain/stack.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/ethchain/stack.go b/ethchain/stack.go
index d475f2f8e..2aca0a350 100644
--- a/ethchain/stack.go
+++ b/ethchain/stack.go
@@ -173,6 +173,10 @@ func NewStack() *Stack {
return &Stack{}
}
+func (st *Stack) Data() []*big.Int {
+ return st.data
+}
+
func (st *Stack) Pop() *big.Int {
str := st.data[len(st.data)-1]
@@ -246,6 +250,10 @@ func (m *Memory) Len() int {
return len(m.store)
}
+func (m *Memory) Data() []byte {
+ return m.store
+}
+
func (m *Memory) Print() {
fmt.Printf("### mem %d bytes ###\n", len(m.store))
if len(m.store) > 0 {