public Code createCode(final Bytes bytes, final boolean createTransaction) {
    return switch (maxEofVersion) {
      case 0 -> new CodeV0(bytes);
      case 1 -> createV1Code(bytes, createTransaction);
      default -> new CodeInvalid(bytes, "Unsupported max code version " + maxEofVersion);
    };
  }
Create Code.

@param bytes the bytes
@param createTransaction This is in a create transaction, allow dangling data
@return the code
evm/src/main/java/org/hyperledger/besu/evm/code/CodeFactory.java