core/vm: fix opSwapN

This commit is contained in:
Marius van der Wijden 2024-06-25 11:45:04 +02:00
parent b5af91a5c9
commit 19e296506a

View file

@ -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
} }