balance list on address-token for USDC shows ? for symbol #51

Closed
opened 2026-02-28 17:31:54 +01:00 by sneak · 2 comments
Owner
No description provided.
clawbot was assigned by sneak 2026-02-28 17:31:54 +01:00
Author
Owner

it also only has the contract address and URL in the well - no token name or symbol or decimals.

it also only has the contract address and URL in the well - no token name or symbol or decimals.
Collaborator

Fixed in PR #54.

The root cause was two-fold:

  1. Missing name field: fetchTokenBalances() in balances.js wasn't including item.token.name in the returned balance objects, so the contract info well had no name to display.

  2. No fallback to known token list: When the token balance entry (tb) was missing or had empty fields (e.g. Blockscout hadn't returned data yet, or the token was filtered), the code showed ? for symbol and left name/symbol/decimals blank in the contract info. Now it falls back to the built-in TOKEN_BY_ADDRESS known token list.

Changes:

  • src/shared/balances.js: Added name to the balance object returned by fetchTokenBalances
  • src/popup/views/addressToken.js: Symbol and contract info (name, symbol, decimals) now fall back to TOKEN_BY_ADDRESS
  • src/popup/views/send.js: Same fallback for symbol display in send view
Fixed in PR #54. The root cause was two-fold: 1. **Missing `name` field**: `fetchTokenBalances()` in `balances.js` wasn't including `item.token.name` in the returned balance objects, so the contract info well had no name to display. 2. **No fallback to known token list**: When the token balance entry (`tb`) was missing or had empty fields (e.g. Blockscout hadn't returned data yet, or the token was filtered), the code showed `?` for symbol and left name/symbol/decimals blank in the contract info. Now it falls back to the built-in `TOKEN_BY_ADDRESS` known token list. Changes: - `src/shared/balances.js`: Added `name` to the balance object returned by `fetchTokenBalances` - `src/popup/views/addressToken.js`: Symbol and contract info (name, symbol, decimals) now fall back to `TOKEN_BY_ADDRESS` - `src/popup/views/send.js`: Same fallback for symbol display in send view
sneak closed this issue 2026-02-28 18:04:04 +01:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: sneak/AutistMask#51
No description provided.