Skip to content

Commit

Permalink
core/vm: fix typos in comments (#19391)
Browse files Browse the repository at this point in the history
  • Loading branch information
hydai authored and holiman committed Apr 4, 2019
1 parent 36b78ab commit 9b3601c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/vm/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()))
Expand All @@ -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)
Expand Down

0 comments on commit 9b3601c

Please sign in to comment.