@Override
  public String validateCode(final EOFLayout eofLayout) {
    if (!eofLayout.isValid()) {
      return "Invalid EOF container - " + eofLayout.invalidReason();
    }
    for (CodeSection cs : eofLayout.codeSections()) {
      var validation =
          validateCode(
              eofLayout.container().slice(cs.getEntryPoint(), cs.getLength()), cs, eofLayout);
      if (validation != null) {
        return validation;
      }
    }
    return null;
  }
Validate Code

@param eofLayout The EOF Layout
@return validation code, null otherwise.
evm/src/main/java/org/hyperledger/besu/evm/code/CodeV1Validation.java