public static EvmSpecVersion fromName(final String name) {
    // TODO remove once CancunEOF tests are removed from EEST
    if ("prague".equalsIgnoreCase(name)) {
      return EvmSpecVersion.OSAKA;
    }
    // TODO remove once CancunEOF tests are removed from EEST
    if ("cancuneof".equalsIgnoreCase(name)) {
      return EvmSpecVersion.CANCUN_EOF;
    }
    for (var version : EvmSpecVersion.values()) {
      if (version.name().equalsIgnoreCase(name)) {
        return version;
      }
    }
    return null;
  }
Calculate a spec version from a text fork name.

@param name The name of the fork, such as "shanghai" or "berlin"
@return the EVM spec version for that fork, or null if no fork matched.
evm/src/main/java/org/hyperledger/besu/evm/EvmSpecVersion.java