-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Clean up old eth abi references #2668
Clean up old eth abi references #2668
Conversation
64a2711
to
ae49967
Compare
88416d2
to
cee2275
Compare
- With commonly used words like ``encode`` and ``decode``, it is better to import the library so a reader knows what exactly is encoding / decoding. Here, it is better to import ``abi`` and use ``abi.encode()`` / ``abi.decode()`` for better context.
cee2275
to
0b76cde
Compare
- This updates the ``towncrier`` types. Seems like we were missing a few.
ab89b2a
to
c1acffe
Compare
* `misc` | ||
* `breaking-change` |
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.
@kclowes any reason we'd want to keep these different for web3.py
? I needed the internal
and so I just copy / pasted from the template project. Makes things easier.
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.
Nope, just hadn't gotten around to changing it. Thanks!
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. I like the changes from encode
to abi.encode
!
* `misc` | ||
* `breaking-change` |
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.
Nope, just hadn't gotten around to changing it. Thanks!
What was wrong?
Related to Issue ethereum/eth-abi#161
How was it fixed?
abi.decode()
over the deprecatedabi.decode_single()
abi
and useabi.encode()
andabi.decode()
so a reader can have more context when reading the code.Todo:
Cute Animal Picture