Skip to content

Commit

Permalink
🐛 Fix events decoding in call traces
Browse files Browse the repository at this point in the history
  • Loading branch information
michprev committed Dec 6, 2024
1 parent 929e40b commit 79a4ef5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion wake/development/call_trace.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ def _decode_event_args(
topic_index = 0
decoded_indexed = []
types = []
non_indexed_abi = []

for arg in fix_library_abi(abi):
if arg["indexed"]:
Expand All @@ -280,10 +281,11 @@ def _decode_event_args(
topic_index += 1
else:
types.append(eth_utils.abi.collapse_if_tuple(arg))
non_indexed_abi.append(arg)

decoded = list(
_normalize(arg, type, chain)
for arg, type in zip(eth_abi.abi.decode(types, data), abi)
for arg, type in zip(eth_abi.abi.decode(types, data), non_indexed_abi)
)
merged = []

Expand Down

0 comments on commit 79a4ef5

Please sign in to comment.