[Bug]: useOwnedNFTs Hook returns undefined
useOwnedNFTs returns undefined on Signature Drop prebuilt contract.
Steps to reproduce:
const signatureDrop = useSignatureDrop("<contract-address>");
const { data: ownedNfts } = useOwnedNFTs(signatureDrop, address);
Expected Behaviour:
- Return an array of NFTs the user owns from the signature drop
@jarrodwatts can you assign this issue to me I can work on it
Sure @sleepyqadir! Thanks for checking it out - let us know if we can help
@jarrodwatts sure, on it
@jarrodwatts I found out that the signatureDrop contract is an instance of ERC721 and it does not contain the contract.query?.owned?.all, due to which it is returning undefined. Works fine if we are using the useNFTBalance hook to get the balance of NFTs.
Any possible solution you recommend to fix this up?