fix: a contract deployment shows a blank recipient on the wait and approval screens #250
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?
A contract deployment has no
to.src/popup/views/approval.js:174writesto: toAddr || "", and the wait screen renders that throughtoAddressHtml("")→addressTitle(""), which returnsnull— so the recipient line is blank rather than saying what is happening.Pre-existing on the live
showWait()path, not introduced by #201. Found by the independent review of that PR while confirming that an empty-stringtodoes not throw; it does not, it just renders nothing.A blank field on a screen that exists to tell the user what they are about to sign, or are waiting on, reads as a rendering fault rather than as information. Deploying a contract is also the case where the user most needs to be told that is what this is — there is no recipient to check, and the transaction creates code.
Implementation requirements
addressColor("")does — the review noted it degrades to anundefinedCSS color, which is harmless but should not survive into the fixed rendering.Definition of done
torenders a contract-deployment label on the approval and wait screens, in full sentences per the README Language & Labeling rules.nullrecipient for such a transaction.tois unchanged.TODO.mdupdated in the same commit.make checkpasses.