Looking for guidance on why account is problematic in this case… When I console.log(account)
I get a valid address however still get the error Error: required param address not provided
… It works when I hard-code it
const {isInitialized, Moralis, account, isWeb3Enabled} = useMoralis()
const fetchNFTs = async () => {
const options = {
chain: "rinkeby",
address: account,
};
const wrldhorse = await Moralis.Web3API.account.getNFTs(options);
let nftBalance = wrldhorse.result;
console.log(nftBalance);
}
useEffect(() => {
if (isInitialized) {
fetchNFTs()
}
}, [isInitialized])