Skip to content

fix: cp-12.18.0 Infinite loader on approve request #32548

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 4 commits into from
May 7, 2025
Merged

Conversation

OGPoyraz
Copy link
Member

@OGPoyraz OGPoyraz commented May 6, 2025

Description

This PR aims to fix infinite loader on approve request described here: #32489 (comment)

Open in GitHub Codespaces

Related issues

Fixes: #32489

Manual testing steps

  1. Connect to a dapp
  2. Switch to Base
  3. Select WETH
  4. Trigger Approval

Screenshots/Recordings

Before

After

WETH.on.Base.mov

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.

@OGPoyraz OGPoyraz requested a review from a team as a code owner May 6, 2025 08:27
@metamaskbot metamaskbot added the team-confirmations Push issues to confirmations team label May 6, 2025
@metamaskbot
Copy link
Collaborator

✨ Files requiring CODEOWNER review ✨

✅ @MetaMask/confirmations

  • ui/pages/confirmations/components/confirm/info/approve/hooks/use-is-nft.test.ts
  • ui/pages/confirmations/components/confirm/info/approve/hooks/use-is-nft.ts

vinistevam
vinistevam previously approved these changes May 6, 2025
@metamaskbot
Copy link
Collaborator

Builds ready [cc99a7f]
UI Startup Metrics (1207 ± 66 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1207109713936612551324
load104591212156811051172
domContentLoaded103990812106910981163
domInteractive17136371628
firstPaint63870117943010631129
backgroundConnect74274821
firstReactRender21156982136
getState1454181830
initialActions001000
loadScripts80367097368865924
setupStore84405817
WebpackHomeuiStartup22271772254616023692418
load17421359220316118332147
domContentLoaded17351356219816118262143
domInteractive161261101346
firstPaint1636267579195274
backgroundConnect4292675342234
firstReactRender16553367109286354
getState224328511745
initialActions3111145
loadScripts17301354219516318242142
setupStore216213262136
FirefoxBrowserifyHomeuiStartup13451165177112714091607
load12041019162712712791461
domContentLoaded12041019162712712781461
domInteractive993920728112154
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect19125062031
firstReactRender22195542230
getState74405811
initialActions001001
loadScripts11871007161412612601442
setupStore74346627
WebpackHomeuiStartup15881381218315216561911
load13651182192014114271649
domContentLoaded13651181191914114261649
domInteractive82412422686137
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect24134782642
firstReactRender36286363847
getState94315920
initialActions102111
loadScripts13451166190414114061626
setupStore95335921
cc: @HowardBraham
Benchmark value 22 exceeds gate value 18 for chrome browserify home p95 backgroundConnect
Benchmark value 2228 exceeds gate value 2192 for chrome webpack home mean uiStartup
Benchmark value 1743 exceeds gate value 1711 for chrome webpack home mean load
Benchmark value 1736 exceeds gate value 1704 for chrome webpack home mean domContentLoaded
Benchmark value 42 exceeds gate value 40 for chrome webpack home mean backgroundConnect
Benchmark value 1731 exceeds gate value 1699 for chrome webpack home mean loadScripts
Benchmark value 2147 exceeds gate value 2030 for chrome webpack home p95 load
Benchmark value 2144 exceeds gate value 2005 for chrome webpack home p95 domContentLoaded
Benchmark value 234 exceeds gate value 90 for chrome webpack home p95 backgroundConnect
Benchmark value 2142 exceeds gate value 1970 for chrome webpack home p95 loadScripts
Sum of mean exceeds: 134ms | Sum of p95 exceeds: 576ms
Sum of all benchmark exceeds: 710ms

Bundle size diffs
  • background: 0 Bytes (0%)
  • ui: 124 Bytes (0%)
  • common: 0 Bytes (0%)

jpuri
jpuri previously approved these changes May 6, 2025
@metamaskbot
Copy link
Collaborator

Builds ready [cc99a7f]
UI Startup Metrics (1238 ± 78 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1238110914597812991386
load108095212927211361217
domContentLoaded107493212837311291212
domInteractive17133851729
firstPaint69682129143810771209
backgroundConnect84285822
firstReactRender19154042027
getState1356591925
initialActions001001
loadScripts836702103571890969
setupStore85233816
WebpackHomeuiStartup22021783261018523352460
load17211338217417018172049
domContentLoaded17121334216917118092008
domInteractive16125491342
firstPaint1736334764206312
backgroundConnect3510336503368
firstReactRender19254361115306352
getState144266261429
initialActions316145
loadScripts17071332216717118051984
setupStore1765392235
FirefoxBrowserifyHomeuiStartup13481173180911813881648
load12051027165512212611530
domContentLoaded12051027165512212611530
domInteractive1073826231120150
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect19126962030
firstReactRender24195772549
getState7416279
initialActions0029301
loadScripts11881010164012212351517
setupStore64345614
WebpackHomeuiStartup16471433223915517411981
load14111223200314715051694
domContentLoaded14111222200214715051694
domInteractive83341502394126
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect25158692743
firstReactRender38305254147
getState145297291132
initialActions002111
loadScripts13891204192014514851678
setupStore105567923
cc: @HowardBraham
Benchmark value 1239 exceeds gate value 1234 for chrome browserify home mean uiStartup
Benchmark value 1081 exceeds gate value 1070 for chrome browserify home mean load
Benchmark value 1074 exceeds gate value 1061 for chrome browserify home mean domContentLoaded
Benchmark value 836 exceeds gate value 830 for chrome browserify home mean loadScripts
Benchmark value 1387 exceeds gate value 1365 for chrome browserify home p95 uiStartup
Benchmark value 1217 exceeds gate value 1190 for chrome browserify home p95 load
Benchmark value 1212 exceeds gate value 1180 for chrome browserify home p95 domContentLoaded
Benchmark value 1210 exceeds gate value 1180 for chrome browserify home p95 firstPaint
Benchmark value 23 exceeds gate value 18 for chrome browserify home p95 backgroundConnect
Benchmark value 969 exceeds gate value 940 for chrome browserify home p95 loadScripts
Benchmark value 2203 exceeds gate value 2192 for chrome webpack home mean uiStartup
Benchmark value 1722 exceeds gate value 1711 for chrome webpack home mean load
Benchmark value 1712 exceeds gate value 1704 for chrome webpack home mean domContentLoaded
Benchmark value 1707 exceeds gate value 1699 for chrome webpack home mean loadScripts
Benchmark value 2460 exceeds gate value 2454 for chrome webpack home p95 uiStartup
Benchmark value 2049 exceeds gate value 2030 for chrome webpack home p95 load
Benchmark value 2008 exceeds gate value 2005 for chrome webpack home p95 domContentLoaded
Benchmark value 1985 exceeds gate value 1970 for chrome webpack home p95 loadScripts
Benchmark value 1530 exceeds gate value 1495 for firefox browserify home p95 load
Benchmark value 1530 exceeds gate value 1495 for firefox browserify home p95 domContentLoaded
Benchmark value 1517 exceeds gate value 1475 for firefox browserify home p95 loadScripts
Benchmark value 1648 exceeds gate value 1615 for firefox webpack home mean uiStartup
Benchmark value 1411 exceeds gate value 1380 for firefox webpack home mean load
Benchmark value 1411 exceeds gate value 1380 for firefox webpack home mean domContentLoaded
Benchmark value 1390 exceeds gate value 1360 for firefox webpack home mean loadScripts
Benchmark value 1981 exceeds gate value 1935 for firefox webpack home p95 uiStartup
Benchmark value 1694 exceeds gate value 1660 for firefox webpack home p95 load
Benchmark value 1694 exceeds gate value 1660 for firefox webpack home p95 domContentLoaded
Benchmark value 1678 exceeds gate value 1630 for firefox webpack home p95 loadScripts
Sum of mean exceeds: 198ms | Sum of p95 exceeds: 462ms
Sum of all benchmark exceeds: 660ms

Bundle size diffs
  • background: 0 Bytes (0%)
  • ui: 124 Bytes (0%)
  • common: 0 Bytes (0%)

@OGPoyraz OGPoyraz dismissed stale reviews from jpuri and vinistevam via 65107b1 May 6, 2025 10:51
@metamaskbot
Copy link
Collaborator

Builds ready [65107b1]
UI Startup Metrics (1214 ± 62 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1214108613576212661309
load105792312166311071146
domContentLoaded105191912106311021136
domInteractive181378101638
firstPaint71174121742110891137
backgroundConnect7424279
firstReactRender20146572039
getState1353471728
initialActions001001
loadScripts81468298662866900
setupStore75212812
WebpackHomeuiStartup21191661251018722632397
load16531269203713917511837
domContentLoaded16471265202913917421831
domInteractive161159101345
firstPaint1636635161179298
backgroundConnect2710240253350
firstReactRender17053380115304362
getState1245981425
initialActions317135
loadScripts16421264200513817361830
setupStore186255252030
FirefoxBrowserifyHomeuiStartup13611167186812114181624
load12181040171812112701501
domContentLoaded12181040171812112701500
domInteractive1023822231116162
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect18134252028
firstReactRender23195572539
getState84345823
initialActions001001
loadScripts12021026169912112541485
setupStore6427368
WebpackHomeuiStartup15371390188611616141780
load13221194164610413931539
domContentLoaded13221194164510413931538
domInteractive80481492084129
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect2514369352240
firstReactRender34294643644
getState84324912
initialActions002111
loadScripts1300117815779913561513
setupStore95547828
Benchmark value 1501 exceeds gate value 1495 for firefox browserify home p95 load
Benchmark value 1500 exceeds gate value 1495 for firefox browserify home p95 domContentLoaded
Benchmark value 1485 exceeds gate value 1475 for firefox browserify home p95 loadScripts
Sum of mean exceeds: 0ms | Sum of p95 exceeds: 21ms
Sum of all benchmark exceeds: 21ms

Bundle size diffs
  • background: 0 Bytes (0%)
  • ui: 101 Bytes (0%)
  • common: 0 Bytes (0%)

@OGPoyraz OGPoyraz enabled auto-merge May 6, 2025 11:33
@metamaskbot
Copy link
Collaborator

Builds ready [369d97e]
UI Startup Metrics (1207 ± 76 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1207109014597612421359
load104991312797010971176
domContentLoaded104290912726910921168
domInteractive17135161630
firstPaint79780126239210671152
backgroundConnect74284718
firstReactRender21156092048
getState14585102028
initialActions001001
loadScripts807676103867852926
setupStore75182812
WebpackHomeuiStartup21291726253518222452364
load16571242221014717491836
domContentLoaded16471235198613817421832
domInteractive161159101348
firstPaint1546535252169257
backgroundConnect3210342403356
firstReactRender19154363110302346
getState154276311325
initialActions317135
loadScripts16431233198413817391830
setupStore1665082031
FirefoxBrowserifyHomeuiStartup13291170167911713781618
load11901047155711812391496
domContentLoaded11901047155711812391495
domInteractive954018925106142
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect19134052035
firstReactRender23195972236
getState7437379
initialActions001001
loadScripts11731033154311812151478
setupStore74336620
WebpackHomeuiStartup15411369201514815871882
load13221167177013013681626
domContentLoaded13211166177013013681626
domInteractive80373023080130
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect24166172440
firstReactRender35284743844
getState1043161030
initialActions102111
loadScripts13011151173512813421588
setupStore85253813
Benchmark value 19 exceeds gate value 18 for chrome browserify home p95 backgroundConnect
Benchmark value 48 exceeds gate value 45 for chrome browserify home p95 firstReactRender
Benchmark value 1496 exceeds gate value 1495 for firefox browserify home p95 load
Benchmark value 1478 exceeds gate value 1475 for firefox browserify home p95 loadScripts
Sum of mean exceeds: 0ms | Sum of p95 exceeds: 8ms
Sum of all benchmark exceeds: 8ms

Bundle size diffs
  • background: 0 Bytes (0%)
  • ui: 101 Bytes (0%)
  • common: 0 Bytes (0%)

@OGPoyraz OGPoyraz added this pull request to the merge queue May 6, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 6, 2025
@OGPoyraz OGPoyraz added this pull request to the merge queue May 6, 2025
@HowardBraham HowardBraham removed this pull request from the merge queue due to a manual request May 6, 2025
@OGPoyraz OGPoyraz added this pull request to the merge queue May 6, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 6, 2025
@HowardBraham HowardBraham added this pull request to the merge queue May 6, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 6, 2025
@HowardBraham HowardBraham added this pull request to the merge queue May 6, 2025
@HowardBraham HowardBraham removed this pull request from the merge queue due to a manual request May 7, 2025
@HowardBraham HowardBraham added this pull request to the merge queue May 7, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 7, 2025
@HowardBraham HowardBraham added this pull request to the merge queue May 7, 2025
Merged via the queue into main with commit 42fd53b May 7, 2025
163 checks passed
@HowardBraham HowardBraham deleted the ogp/32489 branch May 7, 2025 03:57
runway-github bot added a commit that referenced this pull request May 7, 2025
<!--
Please submit this PR as a draft initially.
Do not mark it as "Ready for review" until the template has been
completely filled out, and PR status checks have passed at least once.
-->

## **Description**

<!--
Write a short description of the changes included in this pull request,
also include relevant motivation and context. Have in mind the following
questions:
1. What is the reason for the change?
2. What is the improvement/solution?
-->

This PR aims to fix infinite loader on `approve` request described here:
#32489 (comment)

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/32548?quickstart=1)

## **Related issues**

Fixes: #32489

## **Manual testing steps**

1. Connect to a dapp
2. Switch to Base
3. Select WETH
4. Trigger Approval

## **Screenshots/Recordings**

<!-- If applicable, add screenshots and/or recordings to visualize the
before and after of your change. -->

### **Before**

<!-- [screenshots/recordings] -->

### **After**



https://github.com/user-attachments/assets/9ac4185c-f921-4178-ae51-2edb608578e2




## **Pre-merge author checklist**

- [X] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [X] I've completed the PR template to the best of my ability
- [X] I’ve included tests if applicable
- [X] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [X] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
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.
runway-github bot added a commit that referenced this pull request May 7, 2025
<!--
Please submit this PR as a draft initially.
Do not mark it as "Ready for review" until the template has been
completely filled out, and PR status checks have passed at least once.
-->

## **Description**

<!--
Write a short description of the changes included in this pull request,
also include relevant motivation and context. Have in mind the following
questions:
1. What is the reason for the change?
2. What is the improvement/solution?
-->

This PR aims to fix infinite loader on `approve` request described here:
#32489 (comment)

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/32548?quickstart=1)

## **Related issues**

Fixes: #32489

## **Manual testing steps**

1. Connect to a dapp
2. Switch to Base
3. Select WETH
4. Trigger Approval

## **Screenshots/Recordings**

<!-- If applicable, add screenshots and/or recordings to visualize the
before and after of your change. -->

### **Before**

<!-- [screenshots/recordings] -->

### **After**

https://github.com/user-attachments/assets/9ac4185c-f921-4178-ae51-2edb608578e2

## **Pre-merge author checklist**

- [X] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [X] I've completed the PR template to the best of my ability
- [X] I’ve included tests if applicable
- [X] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [X] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
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.
runway-github bot pushed a commit that referenced this pull request May 7, 2025
…e` request (#32548)

<!--
Please submit this PR as a draft initially.
Do not mark it as "Ready for review" until the template has been
completely filled out, and PR status checks have passed at least once.
-->

## **Description**

<!--
Write a short description of the changes included in this pull request,
also include relevant motivation and context. Have in mind the following
questions:
1. What is the reason for the change?
2. What is the improvement/solution?
-->

This PR aims to fix infinite loader on `approve` request described here:
#32489 (comment)

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/32548?quickstart=1)

## **Related issues**

Fixes: #32489

## **Manual testing steps**

1. Connect to a dapp
2. Switch to Base
3. Select WETH
4. Trigger Approval

## **Screenshots/Recordings**

<!-- If applicable, add screenshots and/or recordings to visualize the
before and after of your change. -->

### **Before**

<!-- [screenshots/recordings] -->

### **After**



https://github.com/user-attachments/assets/9ac4185c-f921-4178-ae51-2edb608578e2




## **Pre-merge author checklist**

- [X] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [X] I've completed the PR template to the best of my ability
- [X] I’ve included tests if applicable
- [X] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [X] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
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.
OGPoyraz added a commit that referenced this pull request May 7, 2025
…e` request (#32591)

- fix: cp-12.18.0 Infinite loader on `approve` request (#32548)

<!--
Please submit this PR as a draft initially.
Do not mark it as "Ready for review" until the template has been
completely filled out, and PR status checks have passed at least once.
-->

## **Description**

<!--
Write a short description of the changes included in this pull request,
also include relevant motivation and context. Have in mind the following
questions:
1. What is the reason for the change?
2. What is the improvement/solution?
-->

This PR aims to fix infinite loader on `approve` request described here:

#32489 (comment)

[![Open in GitHub

Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/32548?quickstart=1)

## **Related issues**

Fixes: #32489

## **Manual testing steps**

1. Connect to a dapp
2. Switch to Base
3. Select WETH
4. Trigger Approval

## **Screenshots/Recordings**

<!-- If applicable, add screenshots and/or recordings to visualize the
before and after of your change. -->

### **Before**

<!-- [screenshots/recordings] -->

### **After**




https://github.com/user-attachments/assets/9ac4185c-f921-4178-ae51-2edb608578e2




## **Pre-merge author checklist**

- [X] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding

Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [X] I've completed the PR template to the best of my ability
- [X] I’ve included tests if applicable
- [X] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [X] I’ve applied the right labels on the PR (see [labeling

guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
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.
[42fd53b](42fd53b)

Co-authored-by: OGPoyraz <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-confirmations Push issues to confirmations team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Starting Approval transaction for WETH on Base renders NFT Withdrawal request
6 participants