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

feat: Conditionally disable nonce editing when smart transactions are… #29891

Merged
merged 1 commit into from
Jan 24, 2025

Conversation

pedronfigueiredo
Copy link
Contributor

@pedronfigueiredo pedronfigueiredo commented Jan 24, 2025

… enabled

Description

We recently enabled custom nonce editing in all redesigned flows, independently of the custom nonce editing settings toggle. This toggle was still used in the legacy flows that are no longer visible by the user, and it will be removed soon in an upcoming PR.

This resulted in nonce editing being available for smart transactions which is not needed as the user should never need to manipulate nonces of smart transactions. This PR fixes this by removing that option to the user.

If smart transactions are enabled but the transaction is on a chain that doesn't currently support smart transactions, the nonce is still editable.

Open in GitHub Codespaces

Related issues

Fixes: #29841

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 Jan 24, 2025
@pedronfigueiredo pedronfigueiredo self-assigned this Jan 24, 2025
@pedronfigueiredo pedronfigueiredo requested a review from a team as a code owner January 24, 2025 14:14
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.

Copy link
Contributor

@dan437 dan437 left a comment

Choose a reason for hiding this comment

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

Nice, I've tried it and don't see nonce editing anymore on the new Confirmation page for STX.

@metamaskbot
Copy link
Collaborator

Builds ready [3530c92]
Page Load Metrics (1900 ± 51 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint21520281589598287
domContentLoaded17142124187810048
load17252129190010751
domInteractive27120502713
backgroundConnect85821168
firstReactRender18103422512
getState65815147
initialActions0483105
loadScripts12401633138710149
setupStore671222210
uiStartup19412584218214871
Bundle size diffs [🚀 Bundle size reduced!]
  • background: 1.02 KiB (0.02%)
  • ui: 1.65 KiB (0.02%)
  • common: -40.51 KiB (-0.45%)

@pedronfigueiredo pedronfigueiredo added this pull request to the merge queue Jan 24, 2025
Merged via the queue into main with commit bdcd207 Jan 24, 2025
72 checks passed
@pedronfigueiredo pedronfigueiredo deleted the pnf/29841 branch January 24, 2025 15:38
@github-actions github-actions bot locked and limited conversation to collaborators Jan 24, 2025
@metamaskbot metamaskbot added the release-12.12.0 Issue or pull request that will be included in release 12.12.0 label Jan 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-12.12.0 Issue or pull request that will be included in release 12.12.0 team-confirmations Push issues to confirmations team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Nonce customization is not disabled for Smart transactions
5 participants