We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23e4a2f commit 1cdf328Copy full SHA for 1cdf328
web3/_utils/abi.py
@@ -568,8 +568,13 @@ def data_tree_map(func, data_tree):
568
receive two args: abi_type, and data
569
'''
570
def map_to_typed_data(elements):
571
- if isinstance(elements, ABITypedData) and elements.abi_type is not None:
572
- return ABITypedData(func(*elements))
+ if isinstance(elements, str) and elements[0] == "(":
+ return elements
573
+ elif isinstance(elements, ABITypedData):
574
+ if elements.abi_type[0] == "(":
575
576
+ elif elements.abi_type is not None:
577
+ return ABITypedData(func(*elements))
578
else:
579
return elements
580
return recursive_map(map_to_typed_data, data_tree)
0 commit comments