{
    "Function": "checkERC721BeforePull",
    "File": "src/libraries/DelegateTokenTransferHelpers.sol",
    "Parent Contracts": [],
    "High-Level Calls": [
        "IERC721"
    ],
    "Internal Calls": [
        "revert WrongAmountForType(IDelegateRegistry.DelegationType,uint256)",
        "revert CallerNotOwnerOrInvalidToken()"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function checkERC721BeforePull(uint256 underlyingAmount, address underlyingContract, uint256 underlyingTokenId) internal view {\n        if (underlyingAmount != 0) {\n            revert Errors.WrongAmountForType(IDelegateRegistry.DelegationType.ERC721, underlyingAmount);\n        }\n        if (IERC721(underlyingContract).ownerOf(underlyingTokenId) != msg.sender) {\n            revert Errors.CallerNotOwnerOrInvalidToken();\n        }\n    }"
}