MetaMask / MetaMask/metamask-mobile

[Bug]: Cannot reset the wallet

Open
#25,723 1 comment 0 reactions 0 assignees View on GitHub
regression-RC-7.62.123 Sev2-normal type-bug
Dominant language
TypeScript
Stars
3k
Forks
1.7k
Avg merge
1d 14h
Merged PRs (30d)
669

Description

### Describe the bug

When attempting to reset the wallet on main I am unable to. The button is disabled for a few seconds then becomes red again and is clickable again. Then in the console I get three errors in sequence.

### Expected behavior

Users should be able to reset their wallets

### Screenshots/Recordings

https://github.com/user-attachments/assets/ec333042-17bc-4db9-ae06-277bb80c242f

### Steps to reproduce

- Go to settings -> security -> reset wallet
- Attempt to reset wallet

### Error messages or log output

```shell
(NOBRIDGE) ERROR Account discovery failed after all retries: [TypeError: Cannot read property 'metadata' of undefined]
(NOBRIDGE) ERROR Account discovery failed after all retries: [TypeError: Cannot read property 'metadata' of undefined]
(NOBRIDGE) ERROR Account discovery failed after all retries: [TypeError: Cannot read property 'metadata' of undefined]
```

### Where was this bug found?

Internal release testing

### Version

7.62.123 build / 7.64.0 code

### Build number

3445

### Build type

Other (please specify exactly where you obtained this build in "Additional Context" section)

### Device

Iphone 14 max

### Operating system

iOS

### Additional context

dev build local

### Severity

_No response_

Contributor guide

Open the contributing guide

Research direction

Reproduce the failure from Settings → Security → Reset wallet on the reported iOS build and inspect the three account-discovery errors in the console. Start by tracing the wallet-reset flow and the account-discovery path; no source files or tests are named in the issue. Done means the reset action completes successfully without the repeated metadata error.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native, typescript
Domain
mobile, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.