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: clear transaction data after submission or cancellation #30546

Merged
merged 2 commits into from
Feb 25, 2025

Conversation

pedronfigueiredo
Copy link
Contributor

@pedronfigueiredo pedronfigueiredo commented Feb 25, 2025

Description

Open in GitHub Codespaces

Related issues

Fixes: #29374

Manual testing steps

  1. Go to this page...

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.

@pedronfigueiredo pedronfigueiredo added the team-confirmations Push issues to confirmations team label Feb 25, 2025
@pedronfigueiredo pedronfigueiredo self-assigned this Feb 25, 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.

@@ -225,6 +226,7 @@ const Footer = () => {
}
dispatch(updateCustomNonce(''));
dispatch(setNextNonce(''));
dispatch(clearConfirmTransaction());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor, but could we create a local function to remove the duplication such as resetTransactionState?

@metamaskbot
Copy link
Collaborator

Builds ready [f0a2136]
Page Load Metrics (1891 ± 90 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint40022041677512246
domContentLoaded15922162186117182
load15982257189118890
domInteractive236540115
backgroundConnect1097362814
firstReactRender1573392311
getState56220199
initialActions01000
loadScripts11541662140414268
setupStore8531395
uiStartup18722535215618790
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 217 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@pedronfigueiredo pedronfigueiredo marked this pull request as ready for review February 25, 2025 12:06
@pedronfigueiredo pedronfigueiredo requested a review from a team as a code owner February 25, 2025 12:06
@@ -178,6 +178,12 @@ const Footer = () => {
(!isScrollToBottomCompleted && !isSignature) ||
hardwareWalletRequiresConnection;

const resetTransactionState = () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor, unit tests would be nice but I appreciate this is high priority.

@pedronfigueiredo pedronfigueiredo added this pull request to the merge queue Feb 25, 2025
Merged via the queue into main with commit 5ddd7e9 Feb 25, 2025
79 checks passed
@pedronfigueiredo pedronfigueiredo deleted the pnf/fix-gas-issue branch February 25, 2025 13:21
@github-actions github-actions bot locked and limited conversation to collaborators Feb 25, 2025
@metamaskbot metamaskbot added the release-12.14.0 Issue or pull request that will be included in release 12.14.0 label Feb 25, 2025
@sleepytanya
Copy link
Contributor

sleepytanya commented Feb 25, 2025

Tested on main - looks great!

Screen.Recording.2025-02-25.at.09.55.22.mov

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-12.14.0 Issue or pull request that will be included in release 12.14.0 team-confirmations Push issues to confirmations team
Projects
None yet
5 participants