{
    "Function": "checkERC1155BeforePull",
    "File": "src/libraries/DelegateTokenTransferHelpers.sol",
    "Parent Contracts": [],
    "High-Level Calls": [],
    "Internal Calls": [
        "revert WrongAmountForType(IDelegateRegistry.DelegationType,uint256)",
        "revert ERC1155Pulled()"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function checkERC1155BeforePull(Structs.Uint256 storage erc1155Pulled, uint256 pullAmount) internal {\n        if (pullAmount == 0) revert Errors.WrongAmountForType(IDelegateRegistry.DelegationType.ERC1155, pullAmount);\n        if (erc1155Pulled.flag == ERC1155_NOT_PULLED) {\n            erc1155Pulled.flag = ERC1155_PULLED;\n        } else {\n            revert Errors.ERC1155Pulled();\n        }\n    }"
}