fix: an unknown-scale token reads differently on Send than on the confirmation screen, and the fee error promises a retry that cannot help #377
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Two consequences of the unknown-scale handling settled in #349, raised by its final review (#367 (comment)). Both pre-existing text or unreconciled paths rather than defects that PR introduced.
1. Two consecutive screens disagree
updateSendBalance()(src/popup/views/send.js:166) was not reconciled with the resolution that landed. For a token whose explorerdecimalsdisagree across addresses, the Send screen showsCurrent balance: 5.0 NOVELand the confirmation screen it leads directly to saysunknown (NOVEL).Each is individually defensible — the Send figure matches the balance list, which is deliberate — but a user moving between two consecutive screens sees the same holding described two ways, which is exactly what the repo's Display Consistency rule exists to prevent.
2. The fee error promises a retry that cannot work
src/popup/index.html:697reads "The network fee could not be estimated… Please go back and try again." When the cause is a missing token scale, no amount of going back and retrying can clear it — the estimate fails for a reason the user cannot act on. Pre-existing string; it is now reachable in a state where it is actively misleading.Not in milestone 1.0.0: both are wording and consistency, the path is fail-closed, and nothing is misstated about an amount.
Definition of done
decimalsfor the same token), asserting both screens and the message. Fails against current head — state the mutation and observed result.make checkgreen.