1 Commits
Author SHA1 Message Date
sneak 6cc06b821a fix: the address screen shows a token just added at its fetched balance, not 0.0000 (closes #516)
check / check (push) Canceled after 0s
e2e / e2e-chrome (push) Canceled after 0s
e2e / e2e-firefox (push) Canceled after 0s
A balance refresh that returns now draws the balances on AddressDetail or
AddressToken again when that screen is up, not only the wallet list. Their
transaction lists are left alone.

Every add path on AddToken and SettingsAddToken tracks a token through
trackToken(), which gives the tracked record `balanceNotFetched: true`. While
the field is set, the token's line reads `quantity unknown` instead of 0.0000.
The popup's refresh deletes the field once it has read the token's balance at
every address. refreshBalances() now resolves with those tokens. The field is
part of the tracked record, so removing the token removes it, and each network
keeps its own records.

Model: opus-5-5
2026-10-26 23:18:45 +00:00
+8 -7
View File
@@ -2230,13 +2230,14 @@ view would leave a wallet one click from deletion.
- "Add" button - "Add" button
- **Transitions**: - **Transitions**:
- "Add" (valid contract) → tracks the token, pops the stack, and re-renders - "Add" (valid contract) → tracks the token, pops the stack, and re-renders
**AddressDetail**. The token's line reads `quantity unknown`, never **AddressDetail**. Until a balance refresh on the token's network has read
`0.0000`, until a balance refresh on the token's network has read its the token's balance at every address, its line never reads `0.0000`. The
balance at every address. Where Blockscout already listed a holding of the line reads `quantity unknown` instead, or is left out while "Show tracked
token, the line shows that holding. Until that refresh, the tracked tokens with zero balance" is off. Where Blockscout already listed a
token's record carries `balanceNotFetched`, so the line still reads holding of the token, the line shows that holding. Until that refresh, the
`quantity unknown` after the popup closes and opens again. A refresh that tracked token's record carries `balanceNotFetched`, so the line still
returns draws AddressDetail's balances again (see Navigation), so the reads `quantity unknown` after the popup closes and opens again. A refresh
that returns draws AddressDetail's balances again (see Navigation), so the
fetched balance shows without the screen being reopened fetched balance shows without the screen being reopened
- "Add" with a token already tracked, a scam-listed address, or a failed - "Add" with a token already tracked, a scam-listed address, or a failed
contract lookup → flash message, no screen change contract lookup → flash message, no screen change