Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
droserasprout committed Jan 15, 2025
1 parent 6ad8cf4 commit 2877215
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/dipdup/runtimes.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,9 @@ def decode_event_args(
)
# FIXME: Do we need original type names?
arg_types = event_abi.get('args_type_name') or event_abi['args']
arg_names = get_event_arg_names(event_abi)

if isinstance(args, list):
arg_names = get_event_arg_names(event_abi)

# FIXME: Optionals are processed incorrectly now
args, unprocessed_args = [], [*args]
for arg_type in arg_types:
Expand All @@ -175,8 +174,7 @@ def decode_event_args(
args.append(unprocessed_args.pop(0))

args = dict(zip(arg_names, args, strict=True))
else:
arg_names = get_event_arg_names(event_abi)


payload = {}
for (key, value), type_ in zip(args.items(), arg_types, strict=True):
Expand Down

0 comments on commit 2877215

Please sign in to comment.