MetaMask / MetaMask/metamask-mobile

[Sentry] Error: Invalid chain ID "undefined"

Open
#15,114 1 comment 0 reactions 0 assignees View on GitHub
area-sentry external-contributor INVALID-ISSUE-TEMPLATE regression-prod-7.45.1 regression-prod-7.46.2 Sev2-normal team-core-platform type-bug
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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.