Skip to content

fix: use to and from to check if transaction is a batch transaction cp-12.18.0 #32190

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 32 commits into from
Apr 28, 2025

Conversation

vinistevam
Copy link
Contributor

@vinistevam vinistevam commented Apr 23, 2025

Description

This PR aims to verify to and from to check if the transaction is a batch transaction.

Open in GitHub Codespaces

Related issues

Fixes: https://github.com/MetaMask/MetaMask-planning/issues/4752

Manual testing steps

  1. Go to test dapp
  2. Under EIP 5792, click on Send Calls
  3. See pill with Includes x transactions under the confirmation title

Screenshots/Recordings

interact.with.webm

image

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.

@vinistevam vinistevam added the team-confirmations Push issues to confirmations team label Apr 23, 2025
Copy link
Contributor

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.

@metamaskbot
Copy link
Collaborator

metamaskbot commented Apr 23, 2025

✨ Files requiring CODEOWNER review ✨

✅ @MetaMask/confirmations

  • ui/pages/confirmations/components/confirm/info/shared/transaction-details/__snapshots__/transaction-details.test.tsx.snap
  • ui/pages/confirmations/components/confirm/info/shared/transaction-details/transaction-details.test.tsx
  • ui/pages/confirmations/components/confirm/info/shared/transaction-details/transaction-details.tsx

@vinistevam vinistevam marked this pull request as ready for review April 23, 2025 13:38
@vinistevam vinistevam requested a review from a team as a code owner April 23, 2025 13:38
@metamaskbot
Copy link
Collaborator

Builds ready [cc14916]
UI Startup Metrics (1210 ± 71 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1210110114807112431329
load104694712716310871165
domContentLoaded104094212606210811159
domInteractive18136381628
firstPaint72581126940810631141
backgroundConnect74243812
firstReactRender21154562136
getState1353381928
initialActions001001
loadScripts804709101859847922
setupStore74142813
WebpackHomeuiStartup20701555246517821932310
load16051238200314216991835
domContentLoaded15981232200014116921817
domInteractive151157111349
firstPaint1726757469201277
backgroundConnect259181212459
firstReactRender18354383117311358
getState1134961320
initialActions316134
loadScripts15931230199814216891816
setupStore186287281930
FirefoxBrowserifyHomeuiStartup1349115716869914181540
load12041032152110612721387
domContentLoaded12041031152110612711387
domInteractive1083535244123167
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect2114103112141
firstReactRender22193532328
getState7415289
initialActions001001
loadScripts11851014149210712581367
setupStore64243610
WebpackHomeuiStartup14951277191812115471798
load12801113165410813341553
domContentLoaded12801113165410813341553
domInteractive79332902785112
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect241482132258
firstReactRender35296253644
getState84264919
initialActions102111
loadScripts12591103164110613181535
setupStore95457825
Benchmark value 58 exceeds gate value 49 for firefox webpack home p95 backgroundConnect
Sum of mean exceeds: 0ms | Sum of p95 exceeds: 9ms
Sum of all benchmark exceeds: 9ms

@metamaskbot
Copy link
Collaborator

Builds ready [6c32825]
UI Startup Metrics (1277 ± 73 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1277113715367313181410
load110298713407211361241
domContentLoaded109594413347311271233
domInteractive19147281833
firstPaint72684133944311061231
backgroundConnect9413813818
firstReactRender23167392242
getState1444591933
initialActions001001
loadScripts846693108969885978
setupStore95233915
WebpackHomeuiStartup21091705239016722392350
load16381333184012217391806
domContentLoaded16311329181412017321797
domInteractive151180101342
firstPaint1786957682219328
backgroundConnect251081152760
firstReactRender20155379118323359
getState12485101426
initialActions317135
loadScripts16261328181012017291794
setupStore197291282032
FirefoxBrowserifyHomeuiStartup13291151181712413871618
load11881013169012812421502
domContentLoaded11871012169012812421502
domInteractive1023517224114154
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect2212120162055
firstReactRender22185362231
getState10420325812
initialActions001001
loadScripts1167997166213112221488
setupStore5310167
WebpackHomeuiStartup15211323200813115951773
load13081124173012313721577
domContentLoaded13071124173012313711576
domInteractive86371642497142
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect22147592338
firstReactRender35296353644
getState95345922
initialActions001011
loadScripts12871103170212013461530
setupStore75313811
cc: @HowardBraham
Benchmark value 1278 exceeds gate value 1234 for chrome browserify home mean uiStartup
Benchmark value 1103 exceeds gate value 1070 for chrome browserify home mean load
Benchmark value 1095 exceeds gate value 1061 for chrome browserify home mean domContentLoaded
Benchmark value 846 exceeds gate value 830 for chrome browserify home mean loadScripts
Benchmark value 1411 exceeds gate value 1365 for chrome browserify home p95 uiStartup
Benchmark value 1241 exceeds gate value 1190 for chrome browserify home p95 load
Benchmark value 1234 exceeds gate value 1180 for chrome browserify home p95 domContentLoaded
Benchmark value 1231 exceeds gate value 1180 for chrome browserify home p95 firstPaint
Benchmark value 978 exceeds gate value 940 for chrome browserify home p95 loadScripts
Benchmark value 1502 exceeds gate value 1495 for firefox browserify home p95 load
Benchmark value 1502 exceeds gate value 1495 for firefox browserify home p95 domContentLoaded
Benchmark value 1488 exceeds gate value 1475 for firefox browserify home p95 loadScripts
Sum of mean exceeds: 127ms | Sum of p95 exceeds: 267ms
Sum of all benchmark exceeds: 394ms

Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: -998 Bytes (-0.02%)
  • ui: 742 Bytes (0.01%)
  • common: 1.07 KiB (0.01%)

matthewwalsh0
matthewwalsh0 previously approved these changes Apr 24, 2025
OGPoyraz
OGPoyraz previously approved these changes Apr 24, 2025
@vinistevam vinistevam enabled auto-merge April 24, 2025 17:05
jpuri
jpuri previously approved these changes Apr 24, 2025
jpuri
jpuri previously approved these changes Apr 25, 2025
OGPoyraz
OGPoyraz previously approved these changes Apr 25, 2025
@vinistevam vinistevam dismissed stale reviews from OGPoyraz and jpuri via 37e81c3 April 25, 2025 12:52
@metamaskbot
Copy link
Collaborator

Builds ready [00af427]
UI Startup Metrics (1201 ± 60 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1201108814046012411325
load104094012215710751151
domContentLoaded103493611955610701146
domInteractive181367101733
firstPaint669133123142110531168
backgroundConnect74212710
firstReactRender20163532028
getState1353271925
initialActions001001
loadScripts79971295155834900
setupStore74172813
WebpackHomeuiStartup21271701261617322522352
load16501327209613817381917
domContentLoaded16411323202013117281876
domInteractive151164101342
firstPaint1806446268228303
backgroundConnect299234332771
firstReactRender20454366118334358
getState164255351325
initialActions317145
loadScripts16371322199612917261867
setupStore1764582232
FirefoxBrowserifyHomeuiStartup13461149168511213941609
load12051008156711512691441
domContentLoaded12051008156711512691441
domInteractive1013822030113166
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect19127981927
firstReactRender22185562230
getState74273710
initialActions001001
loadScripts1189995155111412521425
setupStore6425368
WebpackHomeuiStartup14601301181511415271710
load12531126156810113271463
domContentLoaded12531126156710113271463
domInteractive76351391684110
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect2314128172244
firstReactRender34287153643
getState104488932
initialActions102111
loadScripts1231111115549813141426
setupStore85274818
Bundle size diffs
  • background: 0 Bytes (0%)
  • ui: 22 Bytes (0%)
  • common: 0 Bytes (0%)

@vinistevam vinistevam added this pull request to the merge queue Apr 28, 2025
Merged via the queue into main with commit a8e2598 Apr 28, 2025
169 checks passed
@vinistevam vinistevam deleted the fix/is-batch-check branch April 28, 2025 08:12
@github-actions github-actions bot locked and limited conversation to collaborators Apr 28, 2025
@DDDDDanica DDDDDanica changed the title fix: use to and from to check if transaction is a batch transaction fix: use to and from to check if transaction is a batch transaction cp-12.18.0 Apr 28, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
team-confirmations Push issues to confirmations team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants