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

feat(sol-types): implement traits for longer tuples #699

Merged
merged 1 commit into from
Aug 6, 2024

Conversation

MatheoGrivault
Copy link
Contributor

Motivation

Currently, sol-types traits are implemented for tuples up to 24 elements long, this prevents generating long structs using the sol! macro.

Solution

Added lines inside the all_the_tuples! macro to support up to 60 elements.

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

Copy link
Member

@mattsse mattsse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

imo 60 is a bit excessive

perhaps 30-40 is more reasonable?

@MatheoGrivault
Copy link
Contributor Author

a contract I'm using has a struct with 54 fields, that's why I had to go that high

@mattsse
Copy link
Member

mattsse commented Jul 29, 2024

I see, I'm fine with 60

wdyt @DaniPopes

@mattsse
Copy link
Member

mattsse commented Aug 6, 2024

doesn't hurt really besides compile time

@mattsse mattsse merged commit 2b8a16c into alloy-rs:main Aug 6, 2024
30 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