diff options
author | obscuren <geffobscura@gmail.com> | 2014-03-22 01:22:47 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-03-22 01:22:47 +0800 |
commit | 01c1bce9c5dfa2b2bcdf934afec3f206823f895f (patch) | |
tree | 03c6e06ced15c61e2997b3d7d42fa11b2426d7c5 /ethchain/stack.go | |
parent | 9a9e252cabdc6283d7f4e523860f0e4addf62152 (diff) | |
download | dexon-01c1bce9c5dfa2b2bcdf934afec3f206823f895f.tar dexon-01c1bce9c5dfa2b2bcdf934afec3f206823f895f.tar.gz dexon-01c1bce9c5dfa2b2bcdf934afec3f206823f895f.tar.bz2 dexon-01c1bce9c5dfa2b2bcdf934afec3f206823f895f.tar.lz dexon-01c1bce9c5dfa2b2bcdf934afec3f206823f895f.tar.xz dexon-01c1bce9c5dfa2b2bcdf934afec3f206823f895f.tar.zst dexon-01c1bce9c5dfa2b2bcdf934afec3f206823f895f.zip |
Removed regular ints from the virtual machine and closures
Diffstat (limited to 'ethchain/stack.go')
-rw-r--r-- | ethchain/stack.go | 4 |
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 { |