Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

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
@DaniPopes DaniPopes deleted the fix/abigen-array-derives branch April 12, 2023 21:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants