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

fix(abigen): handle lossy ethabi generated abi structs #950

Merged
merged 2 commits into from
Feb 22, 2022

Conversation

mattsse
Copy link
Collaborator

@mattsse mattsse commented Feb 22, 2022

Motivation

Close #947

Solution

support the lossy abi format the ethabi's contract generates.
and generate tuples if a name of a component is empty.

This needs a followup to address how abi is emitted in ethers-solc, instead of deserializing ethabi::Contract we should keep a copy of the actual abi to not lose the info of the sub components

Ref foundry-rs/foundry#733

PR Checklist

  • Added Tests
  • Added Documentation
  • Updated the changelog

@mattsse mattsse mentioned this pull request Feb 22, 2022
@gakonst gakonst merged commit 45a37fa into gakonst:master Feb 22, 2022
@itsdevbear
Copy link

@gakonst @mattsse ty on the fix for foundry-rs/foundry#733

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.

MultiAbigen does not create rust structs for solidity structs
3 participants