Skip to content
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

fix: incomplete transactions on startup #26963

Merged
merged 14 commits into from
Sep 17, 2024

Conversation

matthewwalsh0
Copy link
Member

@matthewwalsh0 matthewwalsh0 commented Sep 6, 2024

Description

Upgrade the TransactionController to prevent various scenarios triggering the signed or submitted alert and blocking subsequent transactions.

Open in GitHub Codespaces

Related issues

Fixes: #23361

Manual testing steps

Basic regression of transaction functionality.

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.

@matthewwalsh0 matthewwalsh0 added the team-confirmations Push issues to confirmations team label Sep 6, 2024
@matthewwalsh0 matthewwalsh0 requested review from a team as code owners September 6, 2024 10:12
Copy link

socket-security bot commented Sep 6, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@metamask/transaction-controller@37.0.0 network 0 2.1 MB metamaskbot

🚮 Removed packages: npm/@metamask/base-controller@7.0.0, npm/@metamask/controller-utils@11.2.0, npm/@metamask/transaction-controller@35.2.0

View full report↗︎

@metamaskbot
Copy link
Collaborator

Builds ready [bc81945]
Page Load Metrics (1851 ± 90 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint21923551677497239
domContentLoaded15952304182617684
load16052351185118790
domInteractive1387402110

@sleepytanya
Copy link
Contributor

Basic transactions functionality: cancel, speed up, custom nonce, transactions history, contract interactions, approvals, navigation between multiple transactions, gas settings, PPOM - passed

STX fail with the error:

Screenshot 2024-09-10 at 20 37 11

@sleepytanya
Copy link
Contributor

@matthewwalsh0

STX work on develop commit a61b938

stxDevelop.mov

@sleepytanya
Copy link
Contributor

@matthewwalsh0
Oh, I know where the problem is #26979
And great news that it is not related to this PR as this is current behavior on develop

Copy link

codecov bot commented Sep 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.01%. Comparing base (67cf369) to head (85b6fc1).
Report is 7 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #26963      +/-   ##
===========================================
+ Coverage    69.96%   70.01%   +0.05%     
===========================================
  Files         1441     1445       +4     
  Lines        50108    50192      +84     
  Branches     14012    14041      +29     
===========================================
+ Hits         35054    35137      +83     
- Misses       15054    15055       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@metamaskbot
Copy link
Collaborator

Builds ready [b9085c7]
Page Load Metrics (1691 ± 98 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint148625441693217104
domContentLoaded14782461167220397
load14882475169120498
domInteractive135835136
Bundle size diffs [🚀 Bundle size reduced!]
  • background: -32 Bytes (-0.00%)
  • ui: 0 Bytes (0.00%)
  • common: -12.83 KiB (-0.16%)

Copy link

socket-security bot commented Sep 17, 2024

👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎

This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.

View full report↗︎

Copy link

sonarcloud bot commented Sep 17, 2024

@matthewwalsh0 matthewwalsh0 merged commit 39c75a8 into develop Sep 17, 2024
77 of 78 checks passed
@matthewwalsh0 matthewwalsh0 deleted the fix/23361-transaction-controller-startup branch September 17, 2024 10:56
@github-actions github-actions bot locked and limited conversation to collaborators Sep 17, 2024
@metamaskbot metamaskbot added the release-12.6.0 Issue or pull request that will be included in release 12.6.0 label Sep 17, 2024
@metamaskbot
Copy link
Collaborator

Builds ready [85b6fc1]
Page Load Metrics (1638 ± 81 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint22722811578358172
domContentLoaded14442115162015173
load14522196163816981
domInteractive1498412010
Bundle size diffs [🚀 Bundle size reduced!]
  • background: 53 Bytes (0.00%)
  • ui: 45 Bytes (0.00%)
  • common: -15.16 KiB (-0.19%)

@metamaskbot metamaskbot added release-12.5.0 Issue or pull request that will be included in release 12.5.0 and removed release-12.6.0 Issue or pull request that will be included in release 12.6.0 labels Sep 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
QA Passed release-12.5.0 Issue or pull request that will be included in release 12.5.0 team-confirmations Push issues to confirmations team
Projects
None yet
5 participants