-
Notifications
You must be signed in to change notification settings - Fork 31
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
Update multicall #426
Update multicall #426
Conversation
This does not work as expected due to limits of TS compiler |
@h0ngcha0 This is now ready for review! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍 only one comment
// eslint-disable-next-line @typescript-eslint/ban-types | ||
| (type extends Function ? type : never) | ||
| (type extends bigint | boolean | number | string ? type : never) | ||
| (type extends [] ? [] : never) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems that we can remove this line (here)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
He reverted that comment in another post. I will leave it untouched. It's the same code used in Viem
To have better types for multicall as requested by reed