My generaI question: Is there a method in ERC1155 that is equivalent to the method of ERC721 “ownerOf(tokenId)”
Environment
“@openzeppelin/contracts-upgradeable”: “^4.1.0”,
Details
How would I control that only the token owner has “access” to this function (incrementCurrentLockedContentViewTracker and emit the event LockedContentViewed)
function getLockedContent(address account, uint256 tokenId)
external
{
// require(
// account == _msgSender() || isApprovedForAll(account, _msgSender()),
// "ERC1155: caller is not owner nor approved"
// );
_incrementCurrentLockedContentViewTracker(tokenId);
emit LockedContentViewed(msg.sender, tokenId, _lockedContent[tokenId]);
}