Skip to content

Commit

Permalink
Improve _filter_addresses comment (#2225)
Browse files Browse the repository at this point in the history
  • Loading branch information
moisses89 authored Oct 16, 2024
1 parent c2ff63f commit 9f30d0d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion safe_transaction_service/history/services/balance_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,12 @@ def _filter_addresses(
exclude_spam: bool,
) -> List[ChecksumAddress]:
"""
Filter the provided `erc20_addresses` list and tokens with `events_bugged=True` by spam or trusted.
:param erc20_addresses:
:param only_trusted:
:param exclude_spam:
:return: ERC20 tokens filtered by spam or trusted
:return: ERC20 tokens filtered.
"""
base_queryset = Token.objects.filter(
Q(address__in=erc20_addresses) | Q(events_bugged=True)
Expand Down

0 comments on commit 9f30d0d

Please sign in to comment.