mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 02:12:23 +00:00
core/vm: fix opSwapN
This commit is contained in:
parent
b5af91a5c9
commit
19e296506a
1 changed files with 1 additions and 1 deletions
|
|
@ -1052,7 +1052,7 @@ func opSwapN(pc *uint64, interpreter *EVMInterpreter, scope *ScopeContext) ([]by
|
||||||
code = scope.Contract.CodeAt(scope.CodeSection)
|
code = scope.Contract.CodeAt(scope.CodeSection)
|
||||||
index = int(code[*pc+1]) + 1
|
index = int(code[*pc+1]) + 1
|
||||||
)
|
)
|
||||||
scope.Stack.swap(index)
|
scope.Stack.swap(index + 1)
|
||||||
*pc += 1
|
*pc += 1
|
||||||
return nil, nil
|
return nil, nil
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue