fix: TransactionDetail crashes for every ERC-20 transfer — ReferenceError: addressDotHtml is not defined #151
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?
Problem
src/popup/views/transactionDetail.js:4-18destructures from./helperswithout including
addressDotHtml, buttransactionDetail.js:136calls:That branch runs whenever
tx.contractAddressis set — i.e. for every ERC-20token transfer — and it throws before
showView("transaction")attransactionDetail.js:174. So tapping a token-transfer row in any transactionlist opens nothing at all. Native ETH transfers still work.
This is exactly the field specified at
README.md:478-479(token contract witha color dot), and TransactionDetail is described in the README as "the
authoritative record of a specific transaction" — the one place a user can
verify exact details. It is broken for tokens.
The import was dropped by
df031fd("fix: unify address display with sharedrenderAddressHtml utility (#129)"); the usage was added by
3e900dc.Implementation requirements
addressDotHtmlto the destructured import intransactionDetail.js:4-18,after confirming it is exported from
src/popup/views/helpers.js.renderAddressHtmlhelper thatdf031fdintroduced — if the unificationthat commit intended simply missed this call site, prefer the shared helper
over re-adding the lower-level one. Match how the From/To address fields in
this same view are rendered so the token-contract row is visually
consistent.
try/catch.Definition of done
AddressDetail and AddressToken opens the TransactionDetail screen.
contract address, tap-to-copy, and a working etherscan token link, per
README.md:478-479.selectedTokenis set, else AddressDetail).explains why that is disproportionate given the absent jsdom env.
TODO.mdupdated in the same commit.make checkpasses.clawbot referenced this issue2026-08-10 15:49:44 +02:00