chore: in development, show deposit and withdraw errors in money account#30670
Conversation
…amask/metamask-mobile into shane-t/money-account-error-handling
|
Co-authored-by: John Whiles <johnwhiles@outlook.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
There are 2 total unresolved issues (including 1 from previous review).
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 59fdeda. Configure here.
…amask/metamask-mobile into shane-t/money-account-error-handling
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
The changes do not touch any shared components (navigation, confirmations, browser, accounts), core infrastructure, or controllers. The only E2E tests that could be affected are SmokeMoney tests that exercise the deposit/withdrawal flows in the Money/Card feature. No performance impact is expected since the alert is dev-only and adds no overhead to production builds. Performance Test Selection: |




Description
Changelog
CHANGELOG entry: null
Related issues
Fixes: N/A
Manual testing steps
Screenshots/Recordings
Before
N/A
After
NA

Pre-merge author checklist
Performance checks (if applicable)
trace()for usage andaddTokenfor an exampleFor performance guidelines and tooling, see the Performance Guide.
Pre-merge reviewer checklist
Note
Low Risk
Developer-facing diagnostics only; production users see no new UI, and transaction error handling still logs and rethrows as before.
Overview
Adds
showDevErrorAlert, a dev/rc/exp/test-only helper that shows a native alert with the error stack and a Copy action (viaClipboardManager). It no-ops in production and skips the standard “user denied transaction signature” message.useMoneyAccountnow calls this helper alongside existingLogger.errorwhenaddTransactionBatchfails for deposit or withdrawal; errors are still rethrown for callers.Unit tests cover environment gating, suppression, copy behavior, and hook integration expectations.
Reviewed by Cursor Bugbot for commit 3d9346a. Bugbot is set up for automated code reviews on this repo. Configure here.