Skip to content

Commit 187b125

Browse files
tbh dont remember what I changed, I just found this tab open
1 parent 8d61def commit 187b125

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

web3/_utils/abi.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,15 +114,15 @@ def receive_func_abi_exists(contract_abi: ABI) -> Sequence[ABIReceive]:
114114
return filter_abi_by_type("receive", contract_abi)
115115

116116

117-
def get_indexed_event_inputs(event_abi: ABIEvent) -> Sequence[ABIComponentIndexed]:
117+
def get_indexed_event_inputs(event_abi: ABIEvent) -> List[ABIComponentIndexed]:
118118
return [arg for arg in event_abi["inputs"] if arg["indexed"] is True]
119119

120120

121-
def exclude_indexed_event_inputs(event_abi: ABIEvent) -> Sequence[ABIComponentIndexed]:
121+
def exclude_indexed_event_inputs(event_abi: ABIEvent) -> List[ABIComponentIndexed]:
122122
return [arg for arg in event_abi["inputs"] if arg["indexed"] is False]
123123

124124

125-
def filter_by_types(types: Collection[str], contract_abi: ABI) -> Sequence[ABIElement]:
125+
def filter_by_types(types: Collection[str], contract_abi: ABI) -> List[ABIElement]:
126126
return [abi_element for abi_element in contract_abi if abi_element["type"] in types]
127127

128128

@@ -623,7 +623,7 @@ def normalizer(datatype, data):
623623

624624
@curry
625625
def abi_data_tree(
626-
types: Sequence[TypeStr], data: Sequence[Any]
626+
types: Iterable[TypeStr], data: Iterable[Any]
627627
) -> List["ABITypedData"]:
628628
"""
629629
Decorate the data tree with pairs of (type, data). The pair tuple is actually an

0 commit comments

Comments
 (0)