{
    "Function": "changeRootGovernor",
    "File": "governance/contracts/bridges/FxGovernorTunnel.sol",
    "Parent Contracts": [
        "governance/contracts/bridges/FxGovernorTunnel.sol"
    ],
    "High-Level Calls": [],
    "Internal Calls": [
        "revert ZeroAddress()",
        "revert SelfCallOnly(address,address)"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function changeRootGovernor(address newRootGovernor) external {\n        // Check if the change is authorized by the previous governor itself\n        // This is possible only if all the checks in the message process function pass and the contract calls itself\n        if (msg.sender != address(this)) {\n            revert SelfCallOnly(msg.sender, address(this));\n        }\n\n        // Check for the zero address\n        if (newRootGovernor == address(0)) {\n            revert ZeroAddress();\n        }\n\n        rootGovernor = newRootGovernor;\n        emit RootGovernorUpdated(newRootGovernor);\n    }"
}