Join our community: https://t.me/+DOylgFv1jyJlNzM0
Why this matters
frontend/src/context/wallet-context.tsx reads a persisted wallet session from storage on hydrate. If that stored value is corrupted or from an older, incompatible schema (e.g. after a shape change), JSON.parse or the reducer's assumptions about field presence can throw during initial render, crashing the whole app shell before any wallet UI mounts.
Acceptance criteria
Files to touch
frontend/src/context/wallet-context.tsx
frontend/src/context/wallet-context.test.tsx
Out of scope
- Changing the wallet connection flow itself
- Migrating storage format
Why this matters
frontend/src/context/wallet-context.tsxreads a persisted wallet session from storage on hydrate. If that stored value is corrupted or from an older, incompatible schema (e.g. after a shape change),JSON.parseor the reducer's assumptions about field presence can throw during initial render, crashing the whole app shell before any wallet UI mounts.Acceptance criteria
Files to touch
frontend/src/context/wallet-context.tsxfrontend/src/context/wallet-context.test.tsxOut of scope