Skip to content

Commit ca9c576

Browse files
core/vm: fix interpreter comments (#22797)
* Fix interpreter comment * Fix comment
1 parent 0e00ee4 commit ca9c576

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎core/vm/interpreter.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ func (in *EVMInterpreter) Run(contract *Contract, input []byte, readOnly bool) (
144144
defer func() { in.evm.depth-- }()
145145

146146
// Make sure the readOnly is only set if we aren't in readOnly yet.
147-
// This makes also sure that the readOnly flag isn't removed for child calls.
147+
// This also makes sure that the readOnly flag isn't removed for child calls.
148148
if readOnly && !in.readOnly {
149149
in.readOnly = true
150150
defer func() { in.readOnly = false }()
@@ -226,7 +226,7 @@ func (in *EVMInterpreter) Run(contract *Contract, input []byte, readOnly bool) (
226226
} else if sLen > operation.maxStack {
227227
return nil, &ErrStackOverflow{stackLen: sLen, limit: operation.maxStack}
228228
}
229-
// If the operation is valid, enforce and write restrictions
229+
// If the operation is valid, enforce write restrictions
230230
if in.readOnly && in.evm.chainRules.IsByzantium {
231231
// If the interpreter is operating in readonly mode, make sure no
232232
// state-modifying operation is performed. The 3rd stack item

0 commit comments

Comments
 (0)