MetaMask / MetaMask/metamask-extension
[Sentry] Error: Cannot read properties of undefined (reading 'gasPrice')
- Dominant language
- TypeScript
- Stars
- 13.2k
- Forks
- 5.6k
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 451
Description
Sentry Issue: [METAMASK-X9TV](https://metamask.sentry.io/issues/5200737472/?referrer=github_integration)
```
Error: Cannot read properties of undefined (reading 'gasPrice')
at buildEventFragmentProperties (app/scripts/lib/transaction/metrics.ts:720:7)
at exports.createTransactionEventFragmentWithTxId (app/scripts/lib/transaction/metrics.ts:321:11)
at ReflectApply (app/scripts/lib/createMetaRPCHandler.js:23:31)
...
(13 additional frame(s) were not displayed)
```
Contributor guide
Research direction
Start in app/scripts/lib/transaction/metrics.ts at buildEventFragmentProperties (line 720), then trace the call from createTransactionEventFragmentWithTxId (line 321). Use the linked Sentry report to understand the failing transaction path. Done means the reported undefined gasPrice error no longer occurs in this metrics flow.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- analytics
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100