{
    "Function": "updateHash",
    "File": "registries/contracts/RegistriesManager.sol",
    "Parent Contracts": [
        "registries/contracts/GenericManager.sol",
        "registries/contracts/interfaces/IErrorsRegistries.sol"
    ],
    "High-Level Calls": [
        "IRegistry",
        "IRegistry"
    ],
    "Internal Calls": [],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function updateHash(IRegistry.UnitType unitType, uint256 unitId, bytes32 unitHash) external returns (bool success) {\n        if (unitType == IRegistry.UnitType.Component) {\n            success = IRegistry(componentRegistry).updateHash(msg.sender, unitId, unitHash);\n        } else {\n            success = IRegistry(agentRegistry).updateHash(msg.sender, unitId, unitHash);\n        }\n    }"
}