fix: validate destination address on send view (closes #67) #68
Reference in New Issue
Block a user
Delete Branch "fix/67-validate-send-address"
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?
Adds validation on the To address field in the send view before allowing the user to proceed to review.
Changes
Closes #67
8379ab4685to2f11c43dd8Rebased onto main to resolve merge conflict in
src/popup/views/send.js(theTOKEN_BY_ADDRESS→resolveSymbolrename). Resolution keepsresolveSymbolimport from main and adds theethersimport + validation code from this branch.docker build .passes (lint, format, build all green).Review: ✅ Approved — merge-ready
Code review passed. The validation implementation is thorough:
getAddressdocker build .passes (lint, format, build all green). Assigning to @sneak for merge.after leaving the
sendview, the warning/error field is not reset, so returning tosendeven when the destination field is empty, an error or warning remains.7cfb3404cfto9de7791553Rework complete. Fixed the validation state persistence bug.
Changes
resetSendValidation()tosend.js— clears the error/warning text and disables the review buttonresetSendValidation()when navigating to the send view from home, address detail, and address token viewsdocker build .passes (lint, format, build all green).Review (rework): ✅ Approved — merge-ready
The rework correctly fixes the validation state persistence bug reported by sneak:
resetSendValidation()clears error/warning text and disables the review buttondocker build .passes (lint, build all green). Assigned to @sneak for merge.