aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/stack.go
diff options
context:
space:
mode:
Diffstat (limited to 'ethchain/stack.go')
-rw-r--r--ethchain/stack.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/ethchain/stack.go b/ethchain/stack.go
index b64b759fd..3c2899e62 100644
--- a/ethchain/stack.go
+++ b/ethchain/stack.go
@@ -237,6 +237,10 @@ func (m *Memory) Get(offset, size int64) []byte {
return m.store[offset : offset+size]
}
+func (m *Memory) Len() int {
+ return len(m.store)
+}
+
func (m *Memory) Print() {
fmt.Println("### MEM ###")
if len(m.store) > 0 {