This repository has been archived by the owner on Oct 19, 2024. It is now read-only.
Support overloaded ABI functions when invoking abigen macro #238
Labels
enhancement
New feature or request
Is your feature request related to a problem? Please describe.
I tried to replace the
auto-generated
code in theDsProxyFactory
and came accross an issue in theabigen
outputThe DSProxyFactory-ABI has an overloaded
build
function which gets translated to following rust code:Describe the solution you'd like
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)
)*The code above then would look like:
EDIT: just realized this can be mitigated with the
method
aliases in the macro, so this might be a non-issueThe text was updated successfully, but these errors were encountered: