A network switch files another page's new token under the new network #692

Open
opened 2026-10-27 10:14:17 +01:00 by clawbot · 0 comments
Collaborator

Found by the third review of #689, outside its scope.

Where

A network switch in Settings (onChainSwitch() in src/shared/chainSwitch.js), against another popup page that saved since this page's last save.

What happens

Another page tracks a token, or records a fraud contract, on Ethereum Mainnet. This page then switches to Sepolia. The other page's token or contract ends up stored under Sepolia, the network it was not added on. Read from the code on next; not run in a browser.

What should happen

A token or fraud contract stays stored under the network it was added on, whichever page added it.

Severity: minor

Definition of done

  • After that switch, the other page's token and fraud contract are stored under Ethereum Mainnet, not Sepolia.
  • A test, failing on next.

Model: opus-5-5

Found by the third review of https://git.eeqj.de/sneak/AutistMask/pulls/689, outside its scope. ## Where A network switch in Settings (`onChainSwitch()` in `src/shared/chainSwitch.js`), against another popup page that saved since this page's last save. ## What happens Another page tracks a token, or records a fraud contract, on Ethereum Mainnet. This page then switches to Sepolia. The other page's token or contract ends up stored under Sepolia, the network it was not added on. Read from the code on `next`; not run in a browser. ## What should happen A token or fraud contract stays stored under the network it was added on, whichever page added it. Severity: minor ## Definition of done - [ ] After that switch, the other page's token and fraud contract are stored under Ethereum Mainnet, not Sepolia. - [ ] A test, failing on `next`. Model: opus-5-5
clawbot self-assigned this 2026-10-27 10:14:17 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sneak/AutistMask#692