Skip to content

Commit 9894f56

Browse files
thepastaclawclaude
andcommitted
docs(swift-example-app): sync @query docstring with the current resumable filter
The `allAssetLocks` @query comment predates the current `crossWalletResumableLocks` shape and still described the filter as "status >= InstantSendLocked". The floor is actually `>= 1` (Broadcast), and the filter now admits only generic identity- resume funding types 0...2 and excludes in-flight controller slots. Bring the docstring in line so future readers don't work off the old contract. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 638826f commit 9894f56

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

packages/swift-sdk/SwiftExampleApp/SwiftExampleApp/Core/Views/IdentitiesContentView.swift

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,14 @@ struct IdentitiesContentView: View {
2020
private let network: Network
2121
@Query private var identities: [PersistentIdentity]
2222
/// All tracked asset locks across wallets. Filtered into
23-
/// "resumable" rows (status >= `InstantSendLocked` AND no
24-
/// `PersistentIdentity` at the same `(walletId, identityIndex)`
25-
/// slot) by `resumableAssetLocks` so the orphan-lock-after-crash
26-
/// case surfaces as a tappable Resume row. Sorted newest-first
27-
/// by `updatedAt` so the most recent unfinished registration
28-
/// sits at the top of the section.
23+
/// "resumable" rows by `crossWalletResumableLocks` — identity-
24+
/// funding types only (`fundingTypeRaw` in `0...2`), status in
25+
/// `1...3` (Broadcast through ChainLocked), and no
26+
/// `PersistentIdentity` / in-flight controller at the same
27+
/// `(walletId, identityIndex)` slot — so the orphan-lock-after-
28+
/// crash case surfaces as a tappable Resume row. Sorted newest-
29+
/// first by `updatedAt` so the most recent unfinished
30+
/// registration sits at the top of the section.
2931
@Query(sort: [SortDescriptor(\PersistentAssetLock.updatedAt, order: .reverse)])
3032
private var allAssetLocks: [PersistentAssetLock]
3133
/// All wallets, used purely for the "wallet name" lookup on the

0 commit comments

Comments
 (0)