WALLET-1309 | Show CEP-18 contract package hash in token list & details#1335
Open
ost-ptk wants to merge 2 commits into
Open
WALLET-1309 | Show CEP-18 contract package hash in token list & details#1335ost-ptk wants to merge 2 commits into
ost-ptk wants to merge 2 commits into
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.tsx): new Contract package hash row under Decimals for CEP-18 tokens — truncated hash via the existingHashcomponent (copy on click + tooltip with the full value). Not shown for CSPR (no package hash).token-plate.tsx): the name tooltip now always showsname + truncated hashfor 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).🤖 Generated with Claude Code