[bug] useContractReads always returning a [null]
See original GitHub issueIs there an existing issue for this?
- I have searched the existing issues
Package Version
0.5.5
Current Behavior
Trying to read one or multiple contracts using useContractReads
always returns [null]
input:
import { erc721ABI, useContractReads } from 'wagmi';
[{
addressOrName: '0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d',
contractInterface: erc721ABI,
functionName: 'tokenURI',
args: 1,
chainId: 1,
}]
Same object does succeed with useContractRead
Expected Behavior
No response
Steps To Reproduce
No response
Link to Minimal Reproducible Example (CodeSandbox, StackBlitz, etc.)
No response
Anything else?
No response
Issue Analytics
- State:
- Created a year ago
- Comments:22 (3 by maintainers)
Top Results From Across the Web
bug: useSigner() is always null for Metamask [v2.0.0-alpha.4 ...
When connected - atleast via metamask - useSigner() hook never returns a signer. This is needed for full adoption as the useContract/ ...
Read more >In ES6, what is the syntax to specify an array for retrieving ...
I'm working with next.js, and this hook doesn't return the value ... the data property is not always defined, then you can use...
Read more >useContractReads - wagmi
If a contract read fails while fetching, it will fail silently and not throw an error. import { useContractReads } from 'wagmi' function ......
Read more >the above error occurred in the <img> component - You.com | The ...
The problem was that I downloaded the library not to the project itself, but to the project folder, which is why I had...
Read more >Build an NFT Minting Page with thirdweb, IPFS, RainbowKit ...
import { useAccount, useContractRead, useContractWrite } from 'wagmi'; ... with erasure coding is always stored across a variety of geographic locations.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ll fork your code sandbox and hard code the data so you can see there is defintiely an issue here.
For example here is my localchain setup (using rainbowkit):
This does not work at all. I have to remove the multicall param for things to work.