metamask-extension icon indicating copy to clipboard operation
metamask-extension copied to clipboard

fix: gas fee editing in advance gas fee modals

Open jpuri opened this issue 9 months ago • 4 comments

Description

Fix for user unable to manually edit gas fee in advance gas fee editing modal.

Related issues

Fixes: https://github.com/MetaMask/metamask-extension/issues/24260

Manual testing steps

  1. Go to advance gas fee editing modal
  2. Manually edit gas fee
  3. New edited gas value should be retained

Screenshots/Recordings

Before

After

Pre-merge author checklist

  • [X] I’ve followed MetaMask Coding Standards.
  • [X] I've completed the PR template to the best of my ability
  • [X] I’ve included tests if applicable
  • [ ] I’ve documented my code using JSDoc format if applicable
  • [X] I’ve applied the right labels on the PR (see labeling guidelines). Not required for external contributors.

Pre-merge reviewer checklist

  • [ ] I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • [ ] I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

jpuri avatar May 06 '24 11:05 jpuri

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.

github-actions[bot] avatar May 06 '24 11:05 github-actions[bot]

@jpuri Works great! When users manually edit the gas fee for a transaction, this edited amount remains unchanged when there are updates to gas fee calculations (dev build (d2fe3c0)):

https://github.com/MetaMask/metamask-extension/assets/104780023/882d9dab-a742-434f-a852-77a31726428e

Screenshot 2024-05-06 at 15 28 35

The same error is present on develop, unrelated to current PR.

sleepytanya avatar May 06 '24 19:05 sleepytanya

Builds ready [d2fe3c0]
Page Load Metrics (806 ± 616 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint60165872512
domContentLoaded9291352
load4833648061283616
domInteractive9291352
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 72 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

metamaskbot avatar May 07 '24 18:05 metamaskbot

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 67.35%. Comparing base (d27a233) to head (d2fe3c0). Report is 22 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #24387      +/-   ##
===========================================
- Coverage    67.37%   67.35%   -0.02%     
===========================================
  Files         1278     1282       +4     
  Lines        49881    50069     +188     
  Branches     12944    12990      +46     
===========================================
+ Hits         33605    33720     +115     
- Misses       16276    16349      +73     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar May 07 '24 18:05 codecov[bot]

Missing release label release-11.17.0 on PR. Adding release label release-11.17.0 on PR and removing other release labels(release-11.18.0), as PR was added to branch 11.17.0 when release was cut.

metamaskbot avatar May 23 '24 23:05 metamaskbot