Skip to content

Commit

Permalink
core/vm: use correct pc var
Browse files Browse the repository at this point in the history
Date: 2022-12-05 09:48:23-08:00
Signed-off-by: meows <[email protected]>
  • Loading branch information
meowsbits committed Dec 5, 2022
1 parent 6e2b198 commit 90f2089
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/vm/interpreter.go
Original file line number Diff line number Diff line change
Expand Up @@ -381,16 +381,16 @@ func (in *EVMInterpreter) Run(contract *Contract, input []byte, readOnly bool) (
}
// fail if op is not available in legacy context
if operation.eof1Only && callContext.Contract.IsLegacy() {
_, err = opUndefined(&pc, in, callContext)
_, err = opUndefined(pc, in, callContext)
break
}
// fail if op is not available in eof context
if operation.legacyOnly && !callContext.Contract.IsLegacy() {
_, err = opUndefined(&pc, in, callContext)
_, err = opUndefined(pc, in, callContext)
break
}
// execute the operation
res, err = operation.execute(&pc, in, callContext)
res, err = operation.execute(pc, in, callContext)

if err != nil {
break
Expand Down

0 comments on commit 90f2089

Please sign in to comment.