Skip to content
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

Merged
merged 5 commits into from
Oct 3, 2024
Merged

Update multicall #426

merged 5 commits into from
Oct 3, 2024

Conversation

polarker
Copy link
Member

@polarker polarker commented Oct 1, 2024

To have better types for multicall as requested by reed

@polarker polarker requested a review from h0ngcha0 October 1, 2024 10:47
@polarker
Copy link
Member Author

polarker commented Oct 1, 2024

This does not work as expected due to limits of TS compiler

@polarker
Copy link
Member Author

polarker commented Oct 2, 2024

@h0ngcha0 This is now ready for review!

Copy link
Member

@h0ngcha0 h0ngcha0 left a 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)
Copy link
Member

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)

Copy link
Member Author

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

@polarker polarker merged commit 1dd2c90 into master Oct 3, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants