fix: a network switch in Settings leaves no balance from the previous network stored (closes #653) #689

Merged
clawbot merged 1 commits from issue-653-switch-clears-balances into next 2026-10-27 10:14:07 +01:00
1 Commits
Author SHA1 Message Date
sneak 3ff84c6b18 fix: a network switch in Settings leaves no balance from the previous network stored (closes #653)
check / check (push) Waiting to run
e2e / e2e-chrome (push) Waiting to run
e2e / e2e-firefox (push) Waiting to run
A save writes only the fields that differ from what the page last saved. When
the page had last saved a balance of "0", the switch's cleared "0" was no
change. So a balance that the background or another page stored since then
stayed under the new network.

The switch's save now also resets these fields in the stored record it reads:

- every address's balance and token balances;
- the time of the last balance refresh.

Every other field merges as before.

Model: opus-5-5
2026-10-27 08:39:44 +00:00