Update methods to return type Hash32 where appropriate #192
Labels
breaking
Breaking change. Before the next major release, consider going through these issues and merging.
Good First Issue
p3
What was wrong?
A number of methods return a value from
keccak
which is guaranteed to be 32 bytes. For example, see:eth-utils/eth_utils/abi.py
Lines 54 to 60 in d05279c
Other methods that require the 32-byte input type
Hash32
currently require a cast when output from something likeevent_signature_to_log_topic()
is already guaranteed.How can it be fixed?
Update the return type signature to use
Hash32
for all methods that applykeccak
before returning.The text was updated successfully, but these errors were encountered: