-
-
Notifications
You must be signed in to change notification settings - Fork 944
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
bug: readContract
returns never
type
#2125
Comments
This comment was marked as off-topic.
This comment was marked as off-topic.
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. |
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. |
Is there an existing issue for this?
Package Version
4.9.16
Current Behavior
Using
readContract
on a contract ABI with the correctfunctionName
andargs
returns anever
type (in viem 2.9.16) where it used to return a properly typed object (in viem 2.7.12).Expected Behavior
No response
Steps To Reproduce
See repro below (although stackblitz shows the return value as
any
rather thannever
and doesn't seem to be resolving types forreadContract
import)Link to Minimal Reproducible Example (StackBlitz, CodeSandbox, GitHub repo etc.)
https://stackblitz.com/edit/viem-getting-started-sagfg8?file=index.ts,package.json
Anything else?
No response
The text was updated successfully, but these errors were encountered: