fix: the recipient warning on ConfirmTx says what it checked and skips addresses holding ETH (closes #528) #571

Merged
clawbot merged 1 commits from issue-528-zero-history-warning into next 2026-10-19 02:34:15 +02:00
Collaborator

Fixes #528.

ConfirmTx warned when the node's transaction count for the recipient was zero. That count is the number of transactions the address has sent, so an address that only receives (a savings address, an exchange deposit address) got the "ZERO transaction history" box on every send to it.

getFullWarnings() in src/shared/addressWarnings.js now also asks the same node for the recipient's balance when the count is zero, and warns only when both are zero. ETH an address received stays in its balance until it sends a transaction, so a balance shows it has received. The box now says the address has never sent a transaction and holds no ETH.

The sentence moved from src/popup/index.html into show() in src/popup/views/confirmTx.js, because it names the active network's native token, as the contract warning next to it already did. The README ConfirmTx entry and its native-token paragraph follow the new wording.

The check's failure log line is now "tx count or balance check failed"; tests/rpcErrorLog.test.js looks for that text.

New file: tests/addressWarnings.test.js, in tests/.

Judgement call: the plan says "holds no ETH"; the box uses the network's own label (SepoliaETH on Sepolia), per the README rule on native-token labels.
Not changed: an address that has received only tokens and no ETH still gets the warning, whose wording is accurate for it.

Model: opus-5-5

Fixes https://git.eeqj.de/sneak/AutistMask/issues/528. ConfirmTx warned when the node's transaction count for the recipient was zero. That count is the number of transactions the address has sent, so an address that only receives (a savings address, an exchange deposit address) got the "ZERO transaction history" box on every send to it. `getFullWarnings()` in `src/shared/addressWarnings.js` now also asks the same node for the recipient's balance when the count is zero, and warns only when both are zero. ETH an address received stays in its balance until it sends a transaction, so a balance shows it has received. The box now says the address has never sent a transaction and holds no ETH. The sentence moved from `src/popup/index.html` into `show()` in `src/popup/views/confirmTx.js`, because it names the active network's native token, as the contract warning next to it already did. The README ConfirmTx entry and its native-token paragraph follow the new wording. The check's failure log line is now "tx count or balance check failed"; `tests/rpcErrorLog.test.js` looks for that text. New file: `tests/addressWarnings.test.js`, in `tests/`. Judgement call: the plan says "holds no ETH"; the box uses the network's own label (`SepoliaETH` on Sepolia), per the README rule on native-token labels. Not changed: an address that has received only tokens and no ETH still gets the warning, whose wording is accurate for it. Model: opus-5-5
clawbot added 1 commit 2026-10-19 01:05:49 +02:00
fix: the recipient warning says what it checked and skips addresses that have received ETH (closes #528)
check / check (push) Waiting to run
e2e / e2e-chrome (push) Waiting to run
e2e / e2e-firefox (push) Waiting to run
7f259e501e
The transaction count the node reports is what an address has sent, so
an address that only receives, such as a savings address, got the "ZERO
transaction history" box on every send. The check now also asks the node
for the recipient's balance and warns only when both are zero. The box
says the address has never sent a transaction and holds no ETH, naming
the active network's native token as the contract warning does.

Model: opus-5-5
clawbot self-assigned this 2026-10-19 01:05:52 +02:00
clawbot added the needs-review label 2026-10-19 01:14:14 +02:00
Author
Collaborator

PASS: this change meets the definition of done and the plan on #528 and is ready to merge into next.

Not verified: the confirmation screen in a real browser.

Model: opus-5-5

PASS: this change meets the definition of done and the plan on https://git.eeqj.de/sneak/AutistMask/issues/528 and is ready to merge into `next`. Not verified: the confirmation screen in a real browser. Model: opus-5-5
clawbot merged commit e2e1c5d40e into next 2026-10-19 02:34:15 +02:00
clawbot deleted branch issue-528-zero-history-warning 2026-10-19 02:34:16 +02:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sneak/AutistMask#571