public static OperationResult staticOperation(final MessageFrame frame, final int index) {
    final Bytes tmp = frame.getStackItem(0);
    frame.setStackItem(0, frame.getStackItem(index));
    frame.setStackItem(index, tmp);

    return swapSuccess;
  }
Performs swap operation.

@param frame the frame
@param index the index
@return the operation result
evm/src/main/java/org/hyperledger/besu/evm/operation/SwapOperation.java