const { fetch, data, error } = useMoralisWeb3ApiCall(
Web3Api.account.getNFTsForContract,
{
chain: "0x4",
address: user_address,
token_address: "0x90B7424F09c3e9e9e9D3718ee26052E5392A000c",
}
);
Server subdomain: z62iwqedukzn
I minted three tokens on this contract. The ownerOf, balanceOf and tokenURI functions of the contract is showing the owner and updated token balance and the corresponding URI properly. Even the token transfer events show up properly in the Moralis dashboard. But when I try to get the user’s NFTs using Web3Api.account.getNFTsForContract it returns an empty array.
Note: This code was working perfectly fine until 2 days ago. It started returning new tokens with their metadata property as null (but everything else was properly populated including token_uri) when calling from the app. Hadn’t changed anything in the code. Redeployed the contract and created a new server and now it’s returning an empty array.