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 (cherry-pick): incomplete transactions on startup #26972

Merged
merged 8 commits into from
Sep 17, 2024

Conversation

matthewwalsh0
Copy link
Member

@matthewwalsh0 matthewwalsh0 commented Sep 6, 2024

Description

Patch TransactionController to prevent stuck signed transactions.

Specifically:

  • Clear all unapproved transactions on startup.
  • Fail all approved and signed transactions on startup.
  • Prevent approval of cancel transactions.
  • Disable validation when failing transactions.

See patch changes here.

Open in GitHub Codespaces

Related issues

Fixes: #23361

Manual testing steps

High level regression of basic transaction functionality, and restarting browser.

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 a review from a team as a code owner September 6, 2024 16:27
Base automatically changed from Version-v12.2.0 to master September 9, 2024 14:57
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.

@sleepytanya
Copy link
Contributor

sleepytanya commented Sep 11, 2024

dev build 90b6406

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

Restart browser -passed

STX - passed

@matthewwalsh0 matthewwalsh0 force-pushed the fix/23361-fix-signed-transactions branch from 90b6406 to 9e5566d Compare September 14, 2024 02:20
@matthewwalsh0 matthewwalsh0 changed the base branch from master to Version-v12.3.0 September 14, 2024 02:20
@matthewwalsh0 matthewwalsh0 changed the title fix: prevent stuck signed transactions fix (cherry-pick): incomplete transactions on startup Sep 14, 2024
@metamaskbot metamaskbot added the release-12.3.0 Issue or pull request that will be included in release 12.3.0 label Sep 14, 2024
@metamaskbot
Copy link
Collaborator

No release label on PR. Adding release label release-12.3.0 on PR, as PR was added to branch 12.3.0 when release was cut.

2 similar comments
@metamaskbot
Copy link
Collaborator

No release label on PR. Adding release label release-12.3.0 on PR, as PR was added to branch 12.3.0 when release was cut.

@metamaskbot
Copy link
Collaborator

No release label on PR. Adding release label release-12.3.0 on PR, as PR was added to branch 12.3.0 when release was cut.

Copy link

socket-security bot commented Sep 14, 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↗︎

@metamaskbot
Copy link
Collaborator

Builds ready [c088c9d]
Page Load Metrics (1784 ± 111 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint30225191723400192
domContentLoaded150824221749223107
load155525181784231111
domInteractive2192392311

Copy link

Removed dependencies detected. Learn more about Socket for GitHub ↗︎

🚮 Removed packages: npm/@metamask/transaction-controller@34.0.0

View full report↗︎

Copy link

codecov bot commented Sep 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.25%. Comparing base (439f7d6) to head (c729157).
Report is 9 commits behind head on Version-v12.3.0.

Additional details and impacted files
@@                 Coverage Diff                 @@
##           Version-v12.3.0   #26972      +/-   ##
===================================================
+ Coverage            70.24%   70.25%   +0.01%     
===================================================
  Files                 1426     1427       +1     
  Lines                50239    50255      +16     
  Branches             13954    13962       +8     
===================================================
+ Hits                 35289    35306      +17     
+ Misses               14950    14949       -1     

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

@metamaskbot
Copy link
Collaborator

Builds ready [c729157]
Page Load Metrics (1798 ± 47 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint15791983180110249
domContentLoaded1559192417638943
load1575202817989947
domInteractive166838147

@matthewwalsh0 matthewwalsh0 merged commit 04d6bd2 into Version-v12.3.0 Sep 17, 2024
72 checks passed
@matthewwalsh0 matthewwalsh0 deleted the fix/23361-fix-signed-transactions branch September 17, 2024 12:43
@github-actions github-actions bot locked and limited conversation to collaborators Sep 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
QA Passed release-12.3.0 Issue or pull request that will be included in release 12.3.0 team-confirmations Push issues to confirmations team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants