wevm / wagmi

React Hooks for Ethereum

Home Page:https://wagmi.sh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multicall: Type instantiation is excessively deep and possibly infinite

Doko-Demo-Doa opened this issue · comments

Describe the bug

That error appeared even when I supply an empty array to the multicall function:

image

Link to Minimal Reproducible Example

No response

Steps To Reproduce

Just use multicall with empty array supplied to contracts, then you can see it in VSCode:

        const vestingsData = await multicall(teamFinanceWagmiConfig, {
          contracts: [],
        })

Wagmi Version

2.5.19

Viem Version

2.9.15

TypeScript Version

5.3.3

Check existing issues

Anything else?

No response

Found a solution, I have to put "strictNullChecks": true, to tsconfig.json. That means I have to also modify some other files to comply with the null checks, but it's ok.

This issue has been locked since it has been closed for more than 14 days.

If you found a concrete bug or regression related to it, please open a new bug report with a reproduction against the latest wagmi version. If you have any other comments you can create a new discussion.