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

feat: substitute overloaded functions #501

Merged
merged 2 commits into from
Oct 13, 2021

Conversation

mattsse
Copy link
Collaborator

@mattsse mattsse commented Oct 11, 2021

Motivation

Closes #238

Solution

In case of overloaded functions we would follow rust's general convention of suffixing the function name with _with
The first function or the function with the least amount of arguments should be named as in the ABI, the following functions suffixed with with + additional_params[0].name + (and(additional_params[1+i].name))*

PR Checklist

  • Added Tests
  • Added Documentation
  • Updated the changelog

@mattsse mattsse force-pushed the matt/support-overloaded-functions branch from 13f8f66 to 3aa7b66 Compare October 11, 2021 23:50
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.

lovely

Comment on lines +114 to +115
let _ethers_core = util::ethers_core_crate();
let _ethers_providers = util::ethers_providers_crate();
Copy link
Owner

Choose a reason for hiding this comment

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

should prob remove?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

oh, seems like they're unused, clippy --fix must have detected that,
can be removed

@gakonst gakonst merged commit 44bb02f into gakonst:master Oct 13, 2021
meetmangukiya pushed a commit to meetmangukiya/ethers-rs that referenced this pull request Mar 21, 2022
* fix(foundryup): warn macos users without libusb

* fix(forgeup): check for libusb file directly

* Update foundryup/install

Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
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.

Support overloaded ABI functions when invoking abigen macro
2 participants