@Override
  public long cost(final MessageFrame frame, final Supplier<Code> unused) {
    final int inputOffset = clampedToInt(frame.getStackItem(1));
    final int inputSize = clampedToInt(frame.getStackItem(2));
    return clampedAdd(
        clampedAdd(
            gasCalculator().txCreateCost(),
            gasCalculator().memoryExpansionGasCost(frame, inputOffset, inputSize)),
        clampedAdd(
            gasCalculator().createKeccakCost(inputSize), gasCalculator().initcodeCost(inputSize)));
  }
Instantiates a new Create2 operation.

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