Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions eth_utils/abi.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,8 +439,8 @@ def get_all_event_abis(contract_abi: ABI) -> Sequence[ABIEvent]:

def get_normalized_abi_inputs(
abi_element: ABIElement,
*args: Optional[Sequence[Any]],
**kwargs: Optional[Dict[str, Any]],
*args: Any,
**kwargs: Any,
) -> Tuple[Any, ...]:
r"""
Flattens positional args (``args``) and keyword args (``kwargs``) into a Tuple and
Expand Down Expand Up @@ -505,7 +505,7 @@ def get_normalized_abi_inputs(

# If no keyword args were given, we don't need to align them
if not kwargs:
return cast(Tuple[Any, ...], args)
return args

kwarg_names = set(kwargs.keys())
sorted_arg_names = tuple(arg_abi["name"] for arg_abi in function_inputs)
Expand Down