Closed e3243eric closed 2 weeks ago
Hi @carver, does this fix the issue? I need someone to do a code review. Thanks!
I'm no longer an active maintainer on this project, paging @kclowes
Note that I did not do a thorough search for all methods that should be updated, so part of the task is to identify all functions that should be updated.
Also note that because some projects (especially some of ours) use type checking as part of CI, we typically treat type signature changes as breaking changes.
It seems like the newsfragment doesn't have a breaking
type. We should update the validate_files.py.
Ah yeah, that implies that eth-utils is due for a merge from the latest template
Looking further into this, I think it's best to leave the return type as-is and allow downstream users to be more specific about types if they want. This would be breaking for at least 7 of our libs for not much gain. Open to discuss and reopen if someone has strong feels otherwise.
What was wrong?
Issue #192
How was it fixed?
Update the return type from
bytes
toHash32
for all methods that applykeccak
. I explicitly cast the return type ofeth_hash.auto.keccak
toHash32
in crypto.py, since its return type isbytes
, maybe this should be fixed in eth_hash too.To-Do
[x] Clean up commit history
[x] Add entry to the release notes
Cute Animal Picture