diff options
author | hydai <z54981220@gmail.com> | 2019-04-04 18:30:10 +0800 |
---|---|---|
committer | Martin Holst Swende <martin@swende.se> | 2019-04-04 18:30:10 +0800 |
commit | 9b3601cfce4d61cd303f5e243813fa89426259d4 (patch) | |
tree | 3648c1ba28186f60b53a75c28e2908d045a0d5bc | |
parent | 36b78abe612ccaca26837a1f8c52bc43ad96ee53 (diff) | |
download | go-tangerine-9b3601cfce4d61cd303f5e243813fa89426259d4.tar go-tangerine-9b3601cfce4d61cd303f5e243813fa89426259d4.tar.gz go-tangerine-9b3601cfce4d61cd303f5e243813fa89426259d4.tar.bz2 go-tangerine-9b3601cfce4d61cd303f5e243813fa89426259d4.tar.lz go-tangerine-9b3601cfce4d61cd303f5e243813fa89426259d4.tar.xz go-tangerine-9b3601cfce4d61cd303f5e243813fa89426259d4.tar.zst go-tangerine-9b3601cfce4d61cd303f5e243813fa89426259d4.zip |
core/vm: fix typos in comments (#19391)
-rw-r--r-- | core/vm/logger.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/vm/logger.go b/core/vm/logger.go index 1733bf270..262ee5cc3 100644 --- a/core/vm/logger.go +++ b/core/vm/logger.go @@ -158,7 +158,7 @@ func (l *StructLogger) CaptureState(env *EVM, pc uint64, op OpCode, gas, cost ui ) l.changedValues[contract.Address()][address] = value } - // Copy a snapstot of the current memory state to a new buffer + // Copy a snapshot of the current memory state to a new buffer var mem []byte if !l.cfg.DisableMemory { mem = make([]byte, len(memory.Data())) @@ -177,7 +177,7 @@ func (l *StructLogger) CaptureState(env *EVM, pc uint64, op OpCode, gas, cost ui if !l.cfg.DisableStorage { storage = l.changedValues[contract.Address()].Copy() } - // create a new snaptshot of the EVM. + // create a new snapshot of the EVM. log := StructLog{pc, op, gas, cost, mem, memory.Len(), stck, storage, depth, env.StateDB.GetRefund(), err} l.logs = append(l.logs, log) |