fix: a chain switch gives trackedTokens its own copy of the network's list (closes #719) #730

Merged
clawbot merged 1 commits from issue-719-tracked-tokens-own-copy into next 2026-11-03 07:10:34 +01:00
1 Commits
Author SHA1 Message Date
clawbot b39110544d fix: a chain switch gives trackedTokens its own copy of the network's list (closes #719)
check / check (push) Waiting to run
e2e / e2e-chrome (push) Waiting to run
e2e / e2e-firefox (push) Waiting to run
After a switch, `trackedTokens` and that network's list in
`networkTrackedTokens` were one array. So a page's next add or removal also
changed `networkTrackedTokens`, and the save wrote that page's older copy over
the stored one. Another page's add on the previous network was lost, and its
removal was undone.

`applyChainSwitchFields()` now copies the incoming network's list. An add or
removal on the active network changes only `trackedTokens`.

Model: opus-5-5
2026-11-03 05:24:31 +00:00