MetaMask / MetaMask/metamask-mobile
[Sentry] Error: Invalid chain ID "undefined"
- Dominant language
- TypeScript
- Stars
- 3k
- Forks
- 1.7k
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 669
Description
Sentry Issue: [METAMASK-MOBILE-3QF8](https://metamask.sentry.io/issues/6582217159/?referrer=github_integration)
```
Error: Invalid chain ID "undefined"
at ResultError (ses.cjs:7676:17)
at _isSmartContractAddress (app/util/transactions/index.js:392:42)
at isSmartContractAddress (app/util/transactions/index.js:373:45)
at _getTransactionActionKey (app/util/transactions/index.js:467:15)
...
(20 additional frame(s) were not displayed)
```
Contributor guide
Research direction
Start with the Sentry report and trace the call path from app/util/transactions/index.js:392 through isSmartContractAddress and _getTransactionActionKey. Determine where the chain ID becomes undefined, then verify the fix with a regression test or reproduction showing that valid transaction action-key handling no longer raises this error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react-native
- Domain
- blockchain
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100