@Override
  public OperationResult execute(final MessageFrame frame, final EVM evm) {

    // checking for static violations first means fewer account accesses
    if (frame.isStatic()) {
      return new OperationResult(0, ExceptionalHaltReason.ILLEGAL_STATE_CHANGE);
    }

    // First calculate cost.  There's a bit of yak shaving getting values to calculate the cost.
    final Address beneficiaryAddress = Words.toAddress(frame.popStackItem());
    // Because of weird EIP150/158 reasons we care about a null account, so we can't merge this.
    final Account beneficiaryNullable = frame.getWorldUpdater().get(beneficiaryAddress);
    final boolean beneficiaryIsWarm =
        frame.warmUpAddress(beneficiaryAddress) || gasCalculator().isPrecompile(beneficiaryAddress);

    final Address originatorAddress = frame.getRecipientAddress();
    final MutableAccount originatorAccount = frame.getWorldUpdater().getAccount(originatorAddress);
    final Wei originatorBalance = originatorAccount.getBalance();

    final long cost =
        gasCalculator().selfDestructOperationGasCost(beneficiaryNullable, originatorBalance)
            + (beneficiaryIsWarm ? 0L : gasCalculator().getColdAccountAccessCost());

    // With the cost we can test for out-of-gas early WithdrawalRequests
    if (frame.getRemainingGas() < cost) {
      return new OperationResult(cost, ExceptionalHaltReason.INSUFFICIENT_GAS);
    }

    // We passed preliminary checks, get mutable accounts.
    final MutableAccount beneficiaryAccount =
        frame.getWorldUpdater().getOrCreate(beneficiaryAddress);

    // Do the "sweep," all modes send all originator balance to the beneficiary account.
    originatorAccount.decrementBalance(originatorBalance);
    beneficiaryAccount.incrementBalance(originatorBalance);

    // If we are actually destroying the originator (pre-Cancun or same-tx-create) we need to
    // explicitly zero out the account balance (destroying ether/value if the originator is the
    // beneficiary) as well as tag it for later self-destruct cleanup.
    if (!eip6780Semantics || frame.wasCreatedInTransaction(originatorAccount.getAddress())) {
      frame.addSelfDestruct(originatorAccount.getAddress());
      originatorAccount.setBalance(Wei.ZERO);
    }

    // Add refund in message frame.
    frame.addRefund(beneficiaryAddress, originatorBalance);

    // Set frame to CODE_SUCCESS so that the frame performs a normal halt.
    frame.setState(MessageFrame.State.CODE_SUCCESS);

    return new OperationResult(cost, null);
  }
Instantiates a new Self destruct operation, with an optional EIP-6780 semantics flag. EIP-6780
will only remove an account if the account was created within the current transaction. All
other semantics remain.

@param gasCalculator the gas calculator
@param eip6780Semantics Enforce EIP6780 semantics.
evm/src/main/java/org/hyperledger/besu/evm/operation/SelfDestructOperation.java