-
Notifications
You must be signed in to change notification settings - Fork 54
fix(sdk): wallet-flow network fixes for SwiftExampleApp #3772
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
QuantumExplorer
wants to merge
11
commits into
v3.1-dev
Choose a base branch
from
fix/swift-wallet-flow-network-fixes
base: v3.1-dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 9 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
cea465e
fix(sdk): wallet-flow network fixes for SwiftExampleApp
QuantumExplorer ee59225
fix(sdk): per-network wallet persistence and add-to-network support
QuantumExplorer 207b4f8
fix(sdk): address review — network-scope deletes, surface errors, rea…
QuantumExplorer 65807e7
fix(sdk): drop identifier shortcut in hasAnyPrivateKey (review)
QuantumExplorer 076c0a0
fix(sdk): network-scope deriveAndStoreIdentityKey wallet lookup (review)
QuantumExplorer cee4b2c
fix(sdk): surface partial-failure in multi-network wallet create (rev…
QuantumExplorer 815751a
fix(sdk): correct two review-fix regressions (review)
QuantumExplorer 14d353e
fix(sdk): network-scoped walletId closes cross-network cache leak (#2)
QuantumExplorer 5e76921
test(sdk): cover all four networks in scoped-walletId stability test
QuantumExplorer 7f14210
fix(sdk): add walletGroupId so Wallet Info finds sibling-network wallets
QuantumExplorer 92b6b28
refactor(sdk): tighten PersistentWallet uniqueness to walletId alone
QuantumExplorer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💬 Nitpick:
predicate(walletId:network:)is over-specified now that walletId is globally uniqueWith the latest delta's invariant that
walletIdis network-scoped and globally unique on its own (the network byte is folded into the digest, and the#Uniqueconstraint on the model is now[\.walletId]), the composite predicate$0.walletId == walletId && $0.networkRaw == networkRawcan never narrow the result set further than the walletId clause alone, but it CAN spuriously return empty for rows whosenetworkRawisnil— the property's own doc-comment (lines 47–49) explicitly permits pre-persistWalletMetadatarows to havenetworkRaw == nil. This is a low-impact mismatch with the model rather than a correctness break, and is worth flagging only because the just-rewritten walletId doc-comment advertises that the network is already baked intowalletId— keeping a sibling lookup helper that still requires anetworkRawmatch invites confusion at future call sites. Consider either dropping the network clause from this predicate or removing the helper in favor ofpredicate(walletId:).source: ['claude']