You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
What is the type of issue?
Documentation is incorrect
What is the issue?
When i use the public client "getLogs" method, each log contain a property called "args" witch contain the value emitted from the log.
to reproduce:
But in the returned type "Log", the "args" property is not mentionned, so i have to trick with types declarations to use it.
typing it should be feasible since the eventAbi contain the keys values and also provide the type.
So i suggest something like:
I didnt made a PR since your types are pretty complex and i dont want to make misstakes.
Where did you find it?
https://github.com/wevm/viem/blob/main/src/types/log.ts
The text was updated successfully, but these errors were encountered: