Skip to content

fix: Fix send max on gas value changes #30523

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

Merged
merged 12 commits into from
Feb 26, 2025
Merged

fix: Fix send max on gas value changes #30523

merged 12 commits into from
Feb 26, 2025

Conversation

OGPoyraz
Copy link
Member

@OGPoyraz OGPoyraz commented Feb 24, 2025

Description

This PR aims to fix send max feature gas issues.

It also adds e2e tests that cover:

  • correct amount
  • gas modal changes (on picking 'low', 'medium', 'high'
  • adjusting manual values on gas modal
  • reacting gas estimation changes in network level

Open in GitHub Codespaces

Related issues

Fixes: #30269

Manual testing steps

Usual send flow should work properly

Screenshots/Recordings

Before

After

Pre-merge author checklist

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.

@metamaskbot metamaskbot added the team-confirmations Push issues to confirmations team label Feb 24, 2025
@metamaskbot
Copy link
Collaborator

Builds ready [23f4e0e]
Page Load Metrics (1737 ± 107 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint38722461660367176
domContentLoaded140621721714217104
load141521921737222107
domInteractive24573494
backgroundConnect107627209
firstReactRender1480322211
getState566202110
initialActions0523115
loadScripts10171624127617584
setupStore769202110
uiStartup162125351996258124
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 8 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@OGPoyraz OGPoyraz changed the title temp: Fix send max fix: Fix send max on gas value changes Feb 24, 2025
@OGPoyraz OGPoyraz marked this pull request as ready for review February 24, 2025 13:02
@OGPoyraz OGPoyraz requested a review from a team as a code owner February 24, 2025 13:02
@metamaskbot
Copy link
Collaborator

Builds ready [04fd067]
Page Load Metrics (1578 ± 92 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint13492088156718991
domContentLoaded13412007153917986
load13582096157819192
domInteractive18107462512
backgroundConnect1092422813
firstReactRender1380402512
getState45713157
initialActions01000
loadScripts9561432113114067
setupStore769172010
uiStartup15872254179719594
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 748 Bytes (0.01%)
  • common: 0 Bytes (0.00%)

@sleepytanya
Copy link
Contributor

Fix looks great @OGPoyraz

Sending Max on Sepolia:

sepolia.mov

Sending Eth Max on mainnet:

eth_mainnet.mov

Sending USDC Max on Polygon:

polygon_usdc.mov

Sending Eth Max using Advanced gas settings:

eth_adv_set.mov

@metamaskbot
Copy link
Collaborator

Builds ready [75fd32a]
Page Load Metrics (1681 ± 63 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint14061903168013263
domContentLoaded13991888164912158
load14071903168113263
domInteractive19117402512
backgroundConnect981382311
firstReactRender1480372512
getState5509105
initialActions01000
loadScripts9751452121111656
setupStore75513136
uiStartup16192172191313163
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 748 Bytes (0.01%)
  • common: 86 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [91c14f9]
Page Load Metrics (1758 ± 78 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint35920741684346166
domContentLoaded14082030172116579
load14642074175816278
domInteractive259240209
backgroundConnect158742189
firstReactRender1473302110
getState565212110
initialActions01000
loadScripts10141537128214067
setupStore75314126
uiStartup16952306200517885
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 878 Bytes (0.01%)
  • common: 86 Bytes (0.00%)

@OGPoyraz OGPoyraz added this pull request to the merge queue Feb 26, 2025
Merged via the queue into main with commit 4e2b1d4 Feb 26, 2025
79 checks passed
@OGPoyraz OGPoyraz deleted the ogp/fix-max-e2e branch February 26, 2025 10:32
@github-actions github-actions bot locked and limited conversation to collaborators Feb 26, 2025
@metamaskbot metamaskbot added the release-12.14.0 Issue or pull request that will be included in release 12.14.0 label Feb 26, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
QA Passed release-12.14.0 Issue or pull request that will be included in release 12.14.0 team-confirmations Push issues to confirmations team
Projects
None yet
5 participants