Skip to content

Commit

Permalink
Fix missing decoded_value in parameters decoding for events (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Rudnik authored Oct 6, 2022
1 parent bf56ecb commit eafe62f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ethtx/decoders/decoders/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,8 @@ def decode_static_argument(raw_value, argument_type):
if not raw_value:
return raw_value

decoded_value = raw_value

if argument_type == "address":
if len(raw_value) >= 40:
decoded_value = "0x" + raw_value[-40:]
Expand Down

0 comments on commit eafe62f

Please sign in to comment.