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 c4de474 commit 8bd60d3Copy full SHA for 8bd60d3
web3/_utils/abi.py
@@ -23,6 +23,9 @@
23
to_text,
24
to_tuple,
25
)
26
+from eth_utils.abi import (
27
+ collapse_if_tuple,
28
+)
29
30
from web3._utils.ens import (
31
is_ens_name,
@@ -60,14 +63,14 @@ def get_abi_input_types(abi):
60
63
if 'inputs' not in abi and abi['type'] == 'fallback':
61
64
return []
62
65
else:
- return [arg['type'] for arg in abi['inputs']]
66
+ return [collapse_if_tuple(arg) for arg in abi['inputs']]
67
68
69
def get_abi_output_types(abi):
70
if abi['type'] == 'fallback':
71
72
- return [arg['type'] for arg in abi['outputs']]
73
+ return [collapse_if_tuple(arg) for arg in abi['outputs']]
74
75
76
def get_abi_input_names(abi):
0 commit comments