-
-
Notifications
You must be signed in to change notification settings - Fork 958
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multicall Error #2930
Comments
Hello @yogaajs. Please provide a minimal reproduction using StackBlitz, TypeScript Playground (for type issues), or a separate minimal GitHub repository. Minimal reproductions are required as they save us a lot of time reproducing your config/environment and issue, and allow us to help you faster. Once a minimal reproduction is added, a team member will confirm it works, then re-open the issue. |
It’s interesting—when I test with the following:
everything works fine. However, when I switch to:
it fails. Interestingly, if I only call "0x6624d3ced12d84bd6423b2b38d9eb272ee036cf8" on its own, it succeeds. Additionally, when I call an Externally Owned Account (EOA), it works as expected (and it's not a contract...) The challenge is that I don’t know in advance which addresses I’ll need to call, as the selection is random. If a batch (or “chunk”) fails, it doesn’t specify which address caused the failure, making it difficult to isolate the problem. Consequently, I can’t filter out problematic addresses easily. And I have approximately 50 addresses in each Multicall |
Same error for another lib |
For this contract, with only one contract in call, I got the same error https://basescan.org/address/0x9140adceabb0f98a8d3639e42b56bf23d4cae6d0 |
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 Viem version. If you have any questions or comments you can create a new discussion thread. |
Check existing issues
Viem Version
2.21.35
Current Behavior
When I call Multicall to read contract, with this addresses:
Use this ABI:
This error happened:
Expected Behavior
But if I call each address separately, everything's good...
Steps To Reproduce
No response
Link to Minimal Reproducible Example
https://stackblitz.com/edit/viem-getting-started-sxz5j5?file=viem.ts
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: