thirdweb-dev / react

Ultimate collection of React hooks for your web3 apps
https://docs.thirdweb.com/react
Apache License 2.0
80 stars 29 forks source link

[Bug]: useNFT Hook on ERC1155 Token returns an owner field with empty string #146

Open jarrodwatts opened 2 years ago

jarrodwatts commented 2 years ago

useNFT on an ERC1155 token returns an owner field with the value of an empty string

It doesn't make sense for an owner field to be returned for an ERC1155 token as there can be multiple owners per token ID.

Example code to reproduce:

const { data: nft, isLoading: loadingNft } = useNFT(editionDrop, 0);