When i try to call CALL Function of thirdweb it shows error "(in promise) TypeError: Cannot read properties of undefined (reading 'call')". Everthing is correct but.
const getCampaigns = async () => {
const campaigns = await contract.call('getCampaigns');
const parsedCampaings = campaigns.map((campaign, i) => ({
owner: campaign.owner,
title: campaign.title,
description: campaign.description,
target: ethers.utils.formatEther(campaign.target.toString()),
deadline: campaign.deadline.toNumber(),
amountCollected: ethers.utils.formatEther(campaign.amountCollected.toString()),
image: campaign.image,
pId: i
}));
console.log(parsedCampaings);
}