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

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 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.

Support overloaded ABI functions when invoking abigen macro
2 participants