MetaMask / MetaMask/metamask-mobile
Error: Missing or invalid. emit() event: {"name":"chainChanged","data":1}
- Dominant language
- TypeScript
- Stars
- 3k
- Forks
- 1.7k
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 669
Description
Sentry Issue: [METAMASK-MOBILE-29D0](https://metamask.sentry.io/issues/5018143131/?referrer=github_integration)
```
Error: Missing or invalid. emit() event: {"name":"chainChanged","data":1}
at ?anon_0_ (node_modules/@walletconnect/sign-client/dist/index.cjs.js:1:27729)
at next (native)
at asyncGeneratorStep (node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
at _next (node_modules/@babel/runtime/helpers/asyncToGenerator.js:22:27)
at tryCallOne (node_modules/promise/setimmediate/core.js:37:14)
...
(11 additional frame(s) were not displayed)
```
Contributor guide
Research direction
Begin with the linked Sentry report and the stack trace at node_modules/@walletconnect/sign-client/dist/index.cjs.js. Trace the repository code that emits the chainChanged event and investigate why the reported data value of 1 is rejected. Done means the invalid-event error is resolved and the affected flow is verified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react-native, typescript
- Domain
- blockchain, mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100