@Override
  public OperationResult execute(final MessageFrame frame, final EVM evm) {
    Code code = frame.getCode();
    if (code.getEofVersion() == 0) {
      return InvalidOperation.INVALID_RESULT;
    }
    var rStack = frame.getReturnStack();
    var returnInfo = rStack.pop();
    frame.setPC(returnInfo.pc());
    frame.setSection(returnInfo.codeSectionIndex());

    return retfSuccess;
  }
Instantiates a new Ret F operation.

@param gasCalculator the gas calculator
evm/src/main/java/org/hyperledger/besu/evm/operation/RetFOperation.java