{
    "Function": "incrementERC20",
    "File": "src/libraries/DelegateTokenRegistryHelpers.sol",
    "Parent Contracts": [],
    "High-Level Calls": [
        "IDelegateRegistry"
    ],
    "Internal Calls": [
        "revert HashMismatch()",
        "calculateIncreasedAmount"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function incrementERC20(address delegateRegistry, bytes32 newRegistryHash, Structs.DelegateInfo calldata delegateInfo) internal {\n        if (\n            IDelegateRegistry(delegateRegistry).delegateERC20(\n                delegateInfo.delegateHolder, delegateInfo.tokenContract, delegateInfo.rights, calculateIncreasedAmount(delegateRegistry, newRegistryHash, delegateInfo.amount)\n            ) == newRegistryHash\n        ) return;\n        revert Errors.HashMismatch();\n    }"
}