MetaMask / MetaMask/metamask-mobile

Error: Invalid primary type definition

Open
#18,340 0 comments 0 reactions 0 assignees View on GitHub
Bugs---Low-Priority external-contributor INVALID-ISSUE-TEMPLATE regression-prod-7.51.3 team-confirmations
Dominant language
TypeScript
Stars
3k
Forks
1.7k
Avg merge
1d 14h
Merged PRs (30d)
669

Description

Sentry Issue: [METAMASK-MOBILE-41YP](https://metamask.sentry.io/issues/6803820447/?referrer=github_integration)

```
Error: Invalid primary type definition
at sanitizeParsedMessage (/app/components/Views/confirmations/utils/signature.ts:120:20)
at anonymous (/app/components/Views/confirmations/utils/signature.ts:136:83)
at sanitizeParsedMessage (/app/components/Views/confirmations/utils/signature.ts:125:18)
at parseNormalizeAndSanitizeSignTypedData (/app/components/Views/confirmations/utils/signature.ts:195:49)
at anonymous (/app/components/Views/confirmations/components/info/typed-sign-v3v4/message.tsx:54:49)
...
(11 additional frame(s) were not displayed)
```

Contributor guide

Open the contributing guide

Research direction

Start by reading sanitizeParsedMessage and parseNormalizeAndSanitizeSignTypedData in app/components/Views/confirmations/utils/signature.ts, then inspect their use in app/components/Views/confirmations/components/info/typed-sign-v3v4/message.tsx. Use the linked Sentry event to identify the input that triggers the error; the expected handling and completion criteria are not specified in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native, typescript
Domain
mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.