Skip to content

fix(uphold): don't crash on Buy & Sell when Topper-Info.plist lacks sandbox keys - #823

Merged
QuantumExplorer merged 1 commit into
swift-sdk-integrationfrom
fix/topper-sandbox-plist-crash
Jul 16, 2026
Merged

QuantumExplorer merged 1 commit into
swift-sdk-integrationfrom
fix/topper-sandbox-plist-crash

Conversation

@QuantumExplorer

Copy link
Copy Markdown
Member

Summary

Opening Buy & Sell (main menu or shortcut) crashes any build whose gitignored Topper-Info.plist is a placeholder or lacks the SANDBOX_* keys: TopperViewModel.init force-casts (as!) SANDBOX_KEY_ID / SANDBOX_WIDGET_ID / SANDBOX_PRIVATE_KEY, and since fresh installs currently default to testnet, the sandbox branch runs for everyone.

Crash signature (from today's QA sim .ips):

libswiftCore assertionFailure
TopperViewModel.init → TopperViewModel.shared
BuySellPortalViewController.init ← MainMenuScreen.showBuySellPortal

Missing keys now read as empty strings — the same already-supported posture as a missing plist file: the Topper widget just won't authenticate. No behavior change for correctly-provisioned plists.

Test plan

  • Clean dashpay simulator build (arm64)
  • With an empty-dict Topper-Info.plist on testnet: Buy & Sell opens without crashing

🤖 Generated with Claude Code

…acks sandbox keys

TopperViewModel force-cast the SANDBOX_KEY_ID / SANDBOX_WIDGET_ID /
SANDBOX_PRIVATE_KEY plist entries. The plist is gitignored, so any build
with a placeholder (or mainnet-only) Topper-Info.plist trapped in
TopperViewModel.init the moment Buy & Sell opened — and since fresh
installs currently default to testnet, isSandbox is true for everyone.

Missing keys now degrade to empty credentials, the same posture as a
missing plist: the Topper widget simply won't authenticate.

Co-Authored-By: Claude Fable 5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Jul 16, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 6e9215b7-9ffc-4202-88fd-d929a590b308

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/topper-sandbox-plist-crash

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@QuantumExplorer
QuantumExplorer merged commit ade17f5 into swift-sdk-integration Jul 16, 2026
1 check failed
@QuantumExplorer QuantumExplorer changed the title fix(integrations): don't crash on Buy & Sell when Topper-Info.plist lacks sandbox keys fix(uphold): don't crash on Buy & Sell when Topper-Info.plist lacks sandbox keys Jul 16, 2026
QuantumExplorer added a commit that referenced this pull request Jul 16, 2026
…ector #824, Topper fix #823) — keep send-sheet arrow wiring + adopt onInfo

Co-Authored-By: Claude Fable 5 <[email protected]>
@QuantumExplorer
QuantumExplorer deleted the fix/topper-sandbox-plist-crash branch August 7, 2026 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant