diff options
author | Guillaume Ballet <gballet@gmail.com> | 2018-06-26 20:56:25 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2018-06-26 20:56:25 +0800 |
commit | 598f786aabc8f8f998008a59094e76944f6c5bdc (patch) | |
tree | 3980def2842bed3eda00652520ef9fa93a0aa201 /core/vm/memory.go | |
parent | 461291882edce0ac4a28f64c4e8725b7f57cbeae (diff) | |
download | dexon-598f786aabc8f8f998008a59094e76944f6c5bdc.tar dexon-598f786aabc8f8f998008a59094e76944f6c5bdc.tar.gz dexon-598f786aabc8f8f998008a59094e76944f6c5bdc.tar.bz2 dexon-598f786aabc8f8f998008a59094e76944f6c5bdc.tar.lz dexon-598f786aabc8f8f998008a59094e76944f6c5bdc.tar.xz dexon-598f786aabc8f8f998008a59094e76944f6c5bdc.tar.zst dexon-598f786aabc8f8f998008a59094e76944f6c5bdc.zip |
core/vm: clear linter warnings (#17057)
* core/vm: clear linter warnings
* core/vm: review input
* core/vm.go: revert lint in noop as per request
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 { |