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

fix(abigen): contract names can be reserve words #1498

Merged
merged 7 commits into from
Jul 24, 2022

Conversation

clifton
Copy link
Contributor

@clifton clifton commented Jul 21, 2022

Some contract names (such as Enum.sol in gnosis) are rust reserve words that cause invalid bindings to be generated.

PR Checklist

  • Added Tests
  • Added Documentation
  • Updated the changelog

@clifton
Copy link
Contributor Author

clifton commented Jul 21, 2022

re #989

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 catch, smol q, otherwise lgtm

ethers-contract/ethers-contract-abigen/src/util.rs Outdated Show resolved Hide resolved
@clifton clifton force-pushed the fix-abigen-reserve-words branch from 12e1cc9 to 4b87c03 Compare July 21, 2022 21:52
@clifton
Copy link
Contributor Author

clifton commented Jul 21, 2022

ok @mattsse i made that change and fixed it up. should be good to go.

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.

lgtm

@gakonst gakonst merged commit aa00872 into gakonst:master Jul 24, 2022
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