From 79a4ef5cacaf21ef091691aaa415ae6a1e638719 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20P=C5=99evr=C3=A1til?= Date: Fri, 6 Dec 2024 10:24:17 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20events=20decoding=20in=20c?= =?UTF-8?q?all=20traces?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wake/development/call_trace.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wake/development/call_trace.py b/wake/development/call_trace.py index b0c41fe8..dda49ef7 100644 --- a/wake/development/call_trace.py +++ b/wake/development/call_trace.py @@ -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"]: @@ -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 = []