diff --git a/safe_transaction_service/history/models.py b/safe_transaction_service/history/models.py index 73d53d416..21900847c 100644 --- a/safe_transaction_service/history/models.py +++ b/safe_transaction_service/history/models.py @@ -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") )