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

feat(abigen): support overloaded functions with different casing #650

Merged

Conversation

mattsse
Copy link
Collaborator

@mattsse mattsse commented Dec 4, 2021

Motivation

Close #571

Solution

look for overloaded functions with different casing when deriving aliases

PR Checklist

  • Added Tests
  • Added Documentation
  • Updated the changelog

@mattsse mattsse changed the title Matt/handle case sensitive duplicate calls feat(abigen): support overloaded functions with different casing Dec 4, 2021
@mattsse mattsse force-pushed the matt/handle-case-sensitive-duplicate-calls branch from 67073c5 to 0844540 Compare December 5, 2021 11:24
@gakonst
Copy link
Owner

gakonst commented Dec 5, 2021

Instead of casing and suffixing _0/_1 etc., should we instead just maintain the same casing as the source function? I imagine it can be confusing to remember whether index_0 corresponds to index or INDEX

@mattsse mattsse force-pushed the matt/handle-case-sensitive-duplicate-calls branch from c4ddc7e to 23adc4a Compare December 5, 2021 14:26
@mattsse mattsse force-pushed the matt/handle-case-sensitive-duplicate-calls branch from 23adc4a to d3c4b47 Compare December 5, 2021 14:27
Copy link
Owner

@gakonst gakonst left a comment

Choose a reason for hiding this comment

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

🔥🔥

@gakonst gakonst merged commit 279a2c3 into gakonst:master Dec 5, 2021
meetmangukiya pushed a commit to meetmangukiya/ethers-rs that referenced this pull request Mar 21, 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.

abigen is intolerant of duplicate names with different casing
2 participants