diff --git a/core/vm/eips.go b/core/vm/eips.go index 4cab3f18a2..9091ea6235 100644 --- a/core/vm/eips.go +++ b/core/vm/eips.go @@ -1052,7 +1052,7 @@ func opSwapN(pc *uint64, interpreter *EVMInterpreter, scope *ScopeContext) ([]by code = scope.Contract.CodeAt(scope.CodeSection) index = int(code[*pc+1]) + 1 ) - scope.Stack.swap(index) + scope.Stack.swap(index + 1) *pc += 1 return nil, nil }