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 (#26963) #27537

Conversation

vinistevam
Copy link
Contributor

@vinistevam vinistevam commented Oct 1, 2024

Description

This PR cherry-picks #26963

Open in GitHub Codespaces

Related issues

Fixes: #27486

Manual testing steps

  1. Started a tx
  2. Disable the wallet from the chrome://extensions site
  3. Enable it again
  4. Try to Reject the tx
  5. Tx unapproved disappears

Screenshots/Recordings

clean-unapproved-tx.webm

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.

Upgrade the `TransactionController` to `37.0.0`.
Prevent various scenarios triggering the `signed or submitted` alert .
Remove unapproved transaction fixtures as no longer supported.
Copy link
Contributor

github-actions bot commented Oct 1, 2024

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.

@github-actions github-actions bot added the team-confirmations Push issues to confirmations team label Oct 1, 2024
Copy link

socket-security bot commented Oct 1, 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/transaction-controller@35.2.0

View full report↗︎

@vinistevam vinistevam force-pushed the cherry-pick-12.4.0-fix-23361-transaction-controller-startup branch from 396c68c to 2cedf71 Compare October 1, 2024 13:27
@vinistevam
Copy link
Contributor Author

@metamaskbot update-policies

@metamaskbot
Copy link
Collaborator

Policies updated.
👀 Please review the diff for suspicious new powers.

🧠 Learn how: https://lavamoat.github.io/guides/policy-diff/#what-to-look-for-when-reviewing-a-policy-diff

@vinistevam vinistevam changed the title fix: cherry pick fix 23361 transaction controller startup fix: cherry pick incomplete transactions on startup Oct 1, 2024
@vinistevam vinistevam force-pushed the cherry-pick-12.4.0-fix-23361-transaction-controller-startup branch from 3a51546 to fb5b3d5 Compare October 1, 2024 14:03
@vinistevam vinistevam force-pushed the cherry-pick-12.4.0-fix-23361-transaction-controller-startup branch from fb5b3d5 to ba77578 Compare October 1, 2024 15:01
Copy link

codecov bot commented Oct 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.05%. Comparing base (bc08781) to head (c942cc0).

Additional details and impacted files
@@               Coverage Diff                @@
##           Version-v12.4.0   #27537   +/-   ##
================================================
  Coverage            70.05%   70.05%           
================================================
  Files                 1422     1422           
  Lines                49677    49677           
  Branches             13887    13887           
================================================
  Hits                 34800    34800           
  Misses               14877    14877           

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

@metamaskbot
Copy link
Collaborator

Builds ready [ba77578]
Page Load Metrics (1665 ± 92 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint14062312167019996
domContentLoaded13982218164618890
load14062245166519192
domInteractive16188393617

@vinistevam vinistevam marked this pull request as ready for review October 1, 2024 17:51
@vinistevam vinistevam requested a review from a team as a code owner October 1, 2024 17:51
@metamaskbot
Copy link
Collaborator

Builds ready [c942cc0]
Page Load Metrics (1683 ± 53 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint15121963169111053
domContentLoaded15031923166210350
load15121968168311053
domInteractive12137302713

@danjm danjm merged commit f072921 into Version-v12.4.0 Oct 3, 2024
61 of 70 checks passed
@danjm danjm deleted the cherry-pick-12.4.0-fix-23361-transaction-controller-startup branch October 3, 2024 15:37
@github-actions github-actions bot locked and limited conversation to collaborators Oct 3, 2024
@vinistevam vinistevam added the release-12.4.0 Issue or pull request that will be included in release 12.4.0 label Oct 7, 2024
@vinistevam vinistevam changed the title fix: cherry pick incomplete transactions on startup fix (cherry-pick): incomplete transactions on startup (https://github.com/MetaMask/metamask-extension/pull/26963) Oct 7, 2024
@vinistevam vinistevam changed the title fix (cherry-pick): incomplete transactions on startup (https://github.com/MetaMask/metamask-extension/pull/26963) fix (cherry-pick): incomplete transactions on startup https://github.com/MetaMask/metamask-extension/pull/26963 Oct 7, 2024
@vinistevam vinistevam changed the title fix (cherry-pick): incomplete transactions on startup https://github.com/MetaMask/metamask-extension/pull/26963 fix (cherry-pick): incomplete transactions on startup (#26963) Oct 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-12.4.0 Issue or pull request that will be included in release 12.4.0 team-confirmations Push issues to confirmations team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants