MetaMask / MetaMask/metamask-mobile

[Bug]: Signatures - Sign a message with an invalid type breaks the wallet with error `undefined is not a function`

Open
#22,804 2 comments 0 reactions 0 assignees View on GitHub
INVALID-ISSUE-TEMPLATE regression-RC-7.60.0 Sev2-normal Signatures team-confirmations type-bug
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**

Image

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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.