public void setRevertReason(final Bytes revertReason) {
    this.revertReason = Optional.ofNullable(revertReason);
  }
Sets revert reason.

@param revertReason the revert reason
evm/src/main/java/org/hyperledger/besu/evm/frame/MessageFrame.java