feat: show red warning on confirm-tx when recipient has zero transaction history #93
No reviewers
Labels
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sneak/AutistMask#93
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "issue-82-new-address-warning"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #82
When confirming a transaction, asynchronously checks the recipient address via Blockscout API. If the address has zero transactions and zero token transfers, displays a prominent red warning banner advising the user to double-check the address.
Also updates existing warning styling to use red borders/text for better visibility.
/addresses/{addr}endpoint to checktransactions_countandtoken_transfers_countImplementation complete. Changes:
checkRecipientHistory()that queries Blockscout/addresses/{addr}endpoint after the confirm-tx view loadstransactions_count + token_transfers_count == 0, appends a red warning: "This address has ZERO transaction history. It may be incorrect. Double-check before sending."border-red-500 text-red-500) for better visibilitydocker build .passes (tests + lint + build).Review: ✅ PASS
Code review of the diff looks clean:
/addresses/{addr}endpoint fortransactions_count+token_transfers_countstate.blockscoutUrlfallback toDEFAULT_BLOCKSCOUT_URLallows per-network overrideborder-red-500,text-red-500) with ⚠ emojidocker build .passesMarked
merge-readyand assigned to @sneak for merge.dupe #98
Pull request closed