Error reading contract with return more than 1 data #773
Replies: 1 comment
-
Ah, sorry i think it's my bad, i think i just called the wrong abi. But, now working fine, I'll re-open the discussion if this an intermittent bug. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I'm very curious why this error can occur in Wagmi (and Viem) while reading data from contract when the data return more than one data ( idk, is it called as 'tuple'? )
I tried to call "publicSale" function, here's the contract address: https://goerli.etherscan.io/address/0xc027d39fcb507c92e151d895fc80104cb78c72c1#readContract#F14
that function has more than one data:
Previously, it was working fine when using an older version of Wagmi and without using Viem. Has anyone ever experienced a similar issue? And how can it be resolved? Thank you.
Note: It's happened both while using useContractReads() and useContractRead()
Beta Was this translation helpful? Give feedback.
All reactions