MetaMask / MetaMask/metamask-mobile
Error: Invalid primary type definition
- 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
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