Skip to content

Commit

Permalink
Add address to filter condition
Browse files Browse the repository at this point in the history
  • Loading branch information
moisses89 committed Jul 28, 2023
1 parent cbe916e commit 37acc8c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion safe_transaction_service/history/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1306,7 +1306,10 @@ def with_confirmations_required(self):
:return: queryset with `confirmations_required: int` field
"""
threshold_safe_status_query = (
SafeStatus.objects.filter(internal_tx__ethereum_tx=OuterRef("ethereum_tx"))
SafeStatus.objects.filter(
address=OuterRef("safe"),
internal_tx__ethereum_tx=OuterRef("ethereum_tx"),
)
.sorted_reverse_by_mined()
.values("threshold")
)
Expand Down

0 comments on commit 37acc8c

Please sign in to comment.