MetaMask / MetaMask/metamask-mobile
[Bug]: Signatures - Sign a message with an invalid type breaks the wallet with error `undefined is not a function`
- Dominant language
- TypeScript
- Stars
- 3k
- Forks
- 1.7k
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 669
Description
**Describe the bug**
Sign a message with an invalid type breaks the wallet with error `undefined is not a function`. Clicking Try Again does nothing.
**Screenshots/Recordings**
https://github.com/user-attachments/assets/a454f8e4-c16f-47e1-9d24-f49ca282315b
**Steps to reproduce**
1. Go to the test dapp
2. Connect
3. Click Sign with invalid type
4. See wallet breaks
5. Click Try again --> nothing happens
**Error messages or log output**
```shell
```
**Detection stage**
During release testing
**Version**
7.60.0
**Build type**
None
**Device**
Pixel 6
**Operating system**
Android
Contributor guide
Research direction
Start by reproducing the issue in the test dapp on Android using the invalid-type signing flow described in the steps, then inspect the wallet error and the Try Again path. Done means the wallet does not break on an invalid signature type and Try Again responds correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react-native, typescript
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100