fix: add warning styling to contract address display (closes #9) #16

Closed
clawbot wants to merge 1 commits from fix/contract-address-safety into main
Collaborator

Adds visual distinction to the token contract address on the AddressToken view to prevent users from confusing it with their wallet address.

Changes:

  • Red warning border (border-2 border-red-500) around contract info section
  • ⚠️ icon + "DO NOT send funds to this address" warning label
  • Contract address rendered in muted text (text-gray-500)
  • README updated to document the safety rationale

make check: 14 tests pass, prettier clean.

Closes #9

Adds visual distinction to the token contract address on the AddressToken view to prevent users from confusing it with their wallet address. **Changes:** - Red warning border (`border-2 border-red-500`) around contract info section - ⚠️ icon + "DO NOT send funds to this address" warning label - Contract address rendered in muted text (`text-gray-500`) - README updated to document the safety rationale `make check`: 14 tests pass, prettier clean. Closes #9
clawbot self-assigned this 2026-02-27 21:18:47 +01:00
clawbot added 1 commit 2026-02-27 21:18:48 +01:00
fix: add warning styling to contract address display
All checks were successful
check / check (push) Successful in 22s
e10ecfc1df
The contract address in AddressToken view was visually indistinguishable
from the wallet address, creating a risk of users sending funds to the
contract address. Changes:

- Red warning border around contract info section
- Warning icon and 'DO NOT send funds to this address' label
- Muted text color for the contract address itself
- Updated README.md with documentation on the safety treatment
Author
Collaborator

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 check passes: 14 tests, prettier clean

Assigning to sneak.

## 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 check` passes: 14 tests, prettier clean Assigning to sneak.
clawbot removed their assignment 2026-02-27 21:18:58 +01:00
sneak was assigned by clawbot 2026-02-27 21:18:58 +01:00
Author
Collaborator

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.

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.
clawbot closed this pull request 2026-02-27 21:19:07 +01:00
All checks were successful
check / check (push) Successful in 22s
Required
Details

Pull request closed

Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sneak/AutistMask#16