```\n    function setApprovalForAll(address _operator, bool _approved) external {\n        address owner = msg.sender;\n        if (owner == _operator) revert ApprovalToCaller();\n\n        operatorApprovals[owner][_operator] = _approved;\n        emit ApprovalForAll(owner, _operator, _approved);\n    }\n```\n