-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(24732): fix error when sending txn from dapp and editing the gas #24810
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
Builds ready [a4da8b3]
Page Load Metrics (295 ± 322 ms)
Bundle size diffs
|
ui/pages/confirmations/components/edit-gas-fee-popover/edit-gas-item/useCustomTimeEstimate.js
Outdated
Show resolved
Hide resolved
waitTimeEstimate = high.minWaitTimeEstimate; | ||
} else { | ||
waitTimeEstimate = low.maxWaitTimeEstimate; | ||
waitTimeEstimate = gasFeeEstimates.high?.minWaitTimeEstimate; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this and the next condition not need gasFeeEstimates &&
as well? Alternatively, perhaps gasFeeEstimates?.
could work on all of them
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good suggestion ! added optional chaining in the equation
Builds ready [2eb1e66]
Page Load Metrics (695 ± 515 ms)
Bundle size diffs
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #24810 +/- ##
===========================================
- Coverage 65.67% 65.67% -0.00%
===========================================
Files 1360 1360
Lines 54105 54104 -1
Branches 14066 14065 -1
===========================================
- Hits 35533 35532 -1
Misses 18572 18572 ☔ View full report in Codecov by Sentry. |
Builds ready [81e245a]
Page Load Metrics (414 ± 389 ms)
Bundle size diffs
|
Missing release label release-11.16.6 on PR. Adding release label release-11.16.6 on PR and removing other release labels(release-11.18.0), as PR was cherry-picked in branch 11.16.6. |
Description
There is a racing condition captured in MV3 build. When sending transaction from dapp directly, if user chooses to edit the gas fee, and when
suggestedGasFees
request is processing slow,gasFeeEstimates
could be undefined within hookuseCustomTimeEstimate.js
. The fix is to add a condition for accessing this object before forwarding to UI.Related issues
Fixes: #24732
Manual testing steps
suggestedGasFees
is finished fetchingScreenshots/Recordings
Before
by @seaona
network-api-reqs.mp4
After
Pre-merge author checklist
mv3-gas-edition.mov
Pre-merge reviewer checklist