{
    "Function": "_acceptUpgrade",
    "File": "contracts/upgrades/GraphProxy.sol",
    "Parent Contracts": [
        "contracts/upgrades/GraphProxyStorage.sol"
    ],
    "High-Level Calls": [
        "Address"
    ],
    "Internal Calls": [
        "require(bool,string)",
        "_setPendingImplementation",
        "_pendingImplementation",
        "require(bool,string)",
        "_setImplementation"
    ],
    "Library Calls": [
        "isContract"
    ],
    "Low-Level Calls": [],
    "Code": "function _acceptUpgrade() internal {\n        address _pendingImplementation = _pendingImplementation();\n        require(Address.isContract(_pendingImplementation), \"Implementation must be a contract\");\n        require(\n            _pendingImplementation != address(0) && msg.sender == _pendingImplementation,\n            \"Caller must be the pending implementation\"\n        );\n\n        _setImplementation(_pendingImplementation);\n        _setPendingImplementation(address(0));\n    }"
}