public static Era1Type getForTypeCode(final byte[] typeCode) {
    if (typeCode == null || typeCode.length != 2) {
      throw new IllegalArgumentException("typeCode must be 2 bytes");
    }

    Era1Type result = null;
    for (Era1Type era1Type : values()) {
      if (era1Type.typeCode[0] == typeCode[0] && era1Type.typeCode[1] == typeCode[1]) {
        result = era1Type;
      }
    }
    if (result == null) {
      throw new IllegalArgumentException(
          "typeCode " + HexFormat.of().formatHex(typeCode) + " is not recognised");
    }
    return result;
  }
Gets the Era1Type corresponding to the supplied typeCode

@param typeCode the typeCode to find the corresponding Era1Type for
@return the Era1Type corresponding to the supplied typeCode
@throws IllegalArgumentException if there is no Era1Type corresponding to the supplied typeCode
util/src/main/java/org/hyperledger/besu/util/era1/Era1Type.java