-
Notifications
You must be signed in to change notification settings - Fork 35
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
Change ABIFunctionInfo
to ABIElementInfo
#85
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor comments. I like the idea of deprecating but I could also do without it since it existed for a very brief period of time in this code base and it's 99.9% likely that we were the only ones that ever made use of it.
That said I also think creating a new branch to issue that deprecation wouldn't take too much dev time so I could do things "the right way" too I suppose 😄. No strong opinion there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm !
Here's a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 🚀
What was wrong?
After using
ABIFunctionInfo
I realized it should actually encompass allABI
element types. This should be namedABIElementInfo
to match the newget_element_info
utility inweb3
.More context:
Using this in ethereum/web3.py#3408
Here's the implementation of
get_element_info
https://github.com/ethereum/web3.py/blob/23378b4c470230684cf8298fd6133238867153bc/web3/utils/abi.py#L187
Related to Issue #
Closes #
How was it fixed?
Replace
ABIFunctionInfo
withABIElementInfo
and allow allABIElement
types as values of theabi
attribute.Todo:
Clean up commit history
Add or update documentation related to these changes
Add entry to the release notes
Cute Animal Picture