Skip to content

WALLET-1309 | Show CEP-18 contract package hash in token list & details#1335

Open
ost-ptk wants to merge 2 commits into
developfrom
WALLET-1309-cw-cep-18-token-details-page-improvements
Open

WALLET-1309 | Show CEP-18 contract package hash in token list & details#1335
ost-ptk wants to merge 2 commits into
developfrom
WALLET-1309-cw-cep-18-token-details-page-improvements

Conversation

@ost-ptk

@ost-ptk ost-ptk commented Jun 9, 2026

Copy link
Copy Markdown
Member

What & why

WALLET-1309

If a wallet holds two CEP-18 tokens with the same name, they were indistinguishable in the UI. This surfaces the contract package hash so the user can tell them apart.

Changes

  • Token details (token.tsx): new Contract package hash row under Decimals for CEP-18 tokens — truncated hash via the existing Hash component (copy on click + tooltip with the full value). Not shown for CSPR (no package hash).
  • Token list (token-plate.tsx): the name tooltip now always shows name + truncated hash for CEP-18 tokens (hash on its own line). CSPR keeps the previous behavior (tooltip only when the name is longer than 10 chars). The plate layout/height is unchanged.

No copy in the list tooltip (copy lives on the details page). No i18n added — sibling labels (Symbol/Decimals) are plain strings, so the new label follows the same pattern.

Testing

  • npm run ci-check — green (format + lint + tsc + test).
  • Manual: open a CEP-18 token's details (hash row + copy) and hover the token name in the list (tooltip with hash); verified CSPR is unaffected.

🤖 Generated with Claude Code

ost-ptk and others added 2 commits June 9, 2026 16:39
…etails

Display the CEP-18 contract package hash so users can distinguish tokens
that share the same name:
- Token details: new "Contract package hash" row under Decimals
  (truncated, copy on click, full value in tooltip); not shown for CSPR.
- Token list: the name tooltip now always shows name + truncated hash for
  CEP-18 tokens; CSPR keeps the previous long-name-only behavior.

WALLET-1309

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…ependencies

Switched `casper-wallet-core` to SSH-based Git URL, and added several new `addons-linter` dependencies (`node-fetch`, `tr46`, `webidl-conversions`, `whatwg-url`). Adjusted `package-lock.json` accordingly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant