def METHOD_NAME(genesis_file: str, net_port: int):
    genesis_template = f"{CONFIG_DIR}/genesis.template.json"
    with open(genesis_template) as f:
        genesis = json.load(f)
    user = genesis["config"]["autonityContract"]["users"][0]
    user["enode"] = user["enode"].replace("{{port}}", str(net_port))
    with open(genesis_file, "w") as f:
        json.dump(genesis, f)