MetaMask / metamask-extension

:globe_with_meridians: :electric_plug: The MetaMask browser extension enables browsing Ethereum blockchain enabled websites
https://metamask.io
Other
11.52k stars 4.7k forks source link

fix: gas fee editing in advance gas fee modals #24387

Closed jpuri closed 1 week ago

jpuri commented 1 week ago

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

Pre-merge reviewer checklist

github-actions[bot] commented 1 week ago

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.

sleepytanya commented 1 week ago

@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.

metamaskbot commented 1 week ago
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%)
codecov[bot] commented 1 week ago

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 ```diff @@ 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.