diff options
Diffstat (limited to 'core/vm/memory.go')
-rw-r--r-- | core/vm/memory.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/vm/memory.go b/core/vm/memory.go index 43f6ff5bf..722862b1d 100644 --- a/core/vm/memory.go +++ b/core/vm/memory.go @@ -29,6 +29,7 @@ type Memory struct { lastGasCost uint64 } +// NewMemory returns a new memory memory model. func NewMemory() *Memory { return &Memory{} } @@ -107,6 +108,7 @@ func (m *Memory) Data() []byte { return m.store } +// Print dumps the content of the memory. func (m *Memory) Print() { fmt.Printf("### mem %d bytes ###\n", len(m.store)) if len(m.store) > 0 { |