Skip to content

Commit 35c00f1

Browse files
committed
Implement fix proposed in ethereum#1484
1 parent 34f91a3 commit 35c00f1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

web3/_utils/events.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
to_hex,
4040
to_tuple,
4141
)
42+
from eth_utils.abi import collapse_if_tuple
4243
from eth_utils.curried import (
4344
apply_formatter_if,
4445
)
@@ -193,7 +194,7 @@ def get_event_abi_types_for_decoding(event_inputs: Sequence[ABIEventParams]) ->
193194
if input_abi['indexed'] and is_dynamic_sized_type(input_abi['type']):
194195
yield 'bytes32'
195196
else:
196-
yield input_abi['type']
197+
yield collapse_if_tuple(input_abi)
197198

198199

199200
@curry

0 commit comments

Comments
 (0)