private static boolean isShanghaiAtGenesis(final GenesisConfig genesis) {
    final OptionalLong shanghaiTimestamp = genesis.getConfigOptions().getShanghaiTime();
    if (shanghaiTimestamp.isPresent()) {
      return genesis.getTimestamp() >= shanghaiTimestamp.getAsLong();
    }
    return isCancunAtGenesis(genesis);
  }
Writes the genesis block's world state to the given {@link MutableWorldState}.

@param target WorldView to write genesis state to
ethereum/core/src/main/java/org/hyperledger/besu/ethereum/chain/GenesisState.java