-
Hi I'm currently migrating an Ethers.js project to wagmi. But when I call useContractRead the error is always thrown: ContractFunctionExecutionError: An unknown error occurred while executing the contract function "totalSupply". Raw Call Arguments: Contract Call: Docs: https://viem.sh/docs/contract/readContract.html My code is : and no matter I place the abi inline or in a .json file the error keeps the same. Can anyone give some help? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Can you provide a minimal reproducible example? It seems to work in mine: https://stackblitz.com/edit/new-wagmi-obmja7?file=src%2FApp.tsx (ignore the type error – idk why StackBlitz is throwing a type error there). |
Beta Was this translation helpful? Give feedback.
-
I had same issue, I just delete lock file and node modules , reinstall reslove issue. |
Beta Was this translation helpful? Give feedback.
Potential fix: hirosystems/stacks.js#1096 (comment)