@Override
  public long cost(final MessageFrame frame, final Supplier<Code> codeSupplier) {
    final long inputOffset = clampedToLong(frame.getStackItem(2));
    final long inputSize = clampedToLong(frame.getStackItem(3));
    return clampedAdd(
        gasCalculator().memoryExpansionGasCost(frame, inputOffset, inputSize),
        clampedAdd(
            gasCalculator().txCreateCost(),
            gasCalculator().createKeccakCost(codeSupplier.get().getSize())));
  }
Instantiates a new EOFCreate operation.

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