Skip to content

Commit

Permalink
fix: accidentally was skipping ExecutedTxData because it was a subclass
Browse files Browse the repository at this point in the history
  • Loading branch information
fubuloubu committed Jun 6, 2024
1 parent a37a958 commit d55b664
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ape_safe/client/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ def get_transactions(
elif confirmed and not is_confirmed:
continue # NOTE: Skip not confirmed transactions

if txn.nonce < next_nonce and isinstance(txn, UnexecutedTxData):
# NOTE: use `type(txn) is ...` because ExecutedTxData is a subclass of UnexecutedTxData
if txn.nonce < next_nonce and type(txn) is UnexecutedTxData:
continue # NOTE: Skip orphaned transactions

if filter_by_ids and txn.safe_tx_hash not in filter_by_ids:
Expand Down

0 comments on commit d55b664

Please sign in to comment.