fix: add warning styling to contract address display (closes #9) #16
Reference in New Issue
Block a user
Delete Branch "fix/contract-address-safety"
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 visual distinction to the token contract address on the AddressToken view to prevent users from confusing it with their wallet address.
Changes:
border-2 border-red-500) around contract info sectiontext-gray-500)make check: 14 tests pass, prettier clean.Closes #9
Code Review
LGTM — small, focused safety improvement.
✅ No config/Makefile changes
✅ Warning styling prevents contract address confusion (red border, ⚠️ icon, muted text)
✅ README documents the rationale
✅
make checkpasses: 14 tests, prettier cleanAssigning to sneak.
Closing in favor of PR #15 which takes a subtler approach (grey well + "Contract Address" label). Red warning borders + "DO NOT send funds" is too alarming — users legitimately need to copy contract addresses (e.g. to add tokens in other wallets). The goal is visual distinction from the wallet address, not a danger warning.
Pull request closed