fix(platform-wallet): wait for shield confirmations#3715
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThis PR enhances safety for shielded operations across two platforms: the Rust backend now waits for state transition proof confirmation after broadcasting shield transactions and provides diagnostic details on funding errors, while the Swift example app adds a confirmation dialog for clearing sensitive shielded data to prevent accidental loss. ChangesShielded Broadcast Proof Waiting
Shielded Data Clear Confirmation Dialog
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related issues
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
Issue being fixed or feature implemented
Follow-up for review-bot feedback on #3603.
Shielding from transparent platform credits and asset locks previously returned after broadcast submission, while the other shielded operations waited for the state transition proof result before reporting success. The Swift Example App's global shielded Clear action also needed a stronger confirmation because it removes persisted shielded rows across every wallet on the device.
What was done?
shieldto usebroadcast_and_wait::<StateTransitionProofResult>(sdk, None)while preserving the richaddresses_not_enough_fundsdiagnostic.shield_from_asset_lockto wait for the proof result before returning success.Clear Shielded Data.How Has This Been Tested?
git diff --check HEAD~1..HEADcargo check -p platform-walletshipBreaking Changes
None.
Checklist:
For repository code-owners and collaborators only
Summary by CodeRabbit
New Features
Improvements