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

fix(abigen): SolStruct derives edge case #2335

Merged
merged 3 commits into from Apr 12, 2023

Conversation

DaniPopes
Copy link
Collaborator

Motivation

From: https://t.me/ethers_rs/27028

A struct that contains an array of other structs doesn't add derives when it should. This is because the check here is incorrect and shouldn't exist.

Solution

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

Copy link
Collaborator

@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.

nice find,
lgtm

@gakonst
Copy link
Owner

gakonst commented Apr 7, 2023

LGTM - needs lint @DaniPopes

@gakonst gakonst merged commit 7cae405 into gakonst:master Apr 12, 2023
11 of 15 checks passed
@DaniPopes DaniPopes deleted the fix/abigen-array-derives branch April 12, 2023 21:36
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.

None yet

3 participants