Assuming I have a contract to mint my own NFTs: (I'm thinking ERC-721, but not necessarily).
I want to create another smart contract that before doing anything, verifies that the address interacting with it (
msg.sender) currently owns an NFT minted by that specific contract. Even better, if it could read an attribute, like the NFT id.
Is that even possible? I did some research on it, but apparently the address doesn't actually stores the balances/tokens, only eth. But I'm guessing it must be a way, given how those NFTs gallery works. If it's possible, how could I do it?