MetaMask / MetaMask/metamask-extension

[Sentry] Error: Cannot read properties of undefined (reading 'gasPrice')

Open
#24,244 4 comments 0 reactions 0 assignees View on GitHub
area-sentry external-contributor INVALID-ISSUE-TEMPLATE regression-prod-11.14.0 regression-prod-12.5.1 regression-prod-12.6.0 Sev3-low team-confirmations Transactions type-bug
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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.