Skip to content

fix: Nonce editing cp-12.17.0 #32244

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

Merged
merged 1 commit into from
Apr 24, 2025
Merged

fix: Nonce editing cp-12.17.0 #32244

merged 1 commit into from
Apr 24, 2025

Conversation

pedronfigueiredo
Copy link
Contributor

@pedronfigueiredo pedronfigueiredo commented Apr 24, 2025

Description

On #31593, a new onTransactionConfirm callback was created that handles enriching the transaction metadata with the custom nonce before it gets sent to the transaction controller. That callback was missing the selected custom nonce in the dependency array.

Open in GitHub Codespaces

Related issues

Fixes: #32029

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 Apr 24, 2025
@pedronfigueiredo pedronfigueiredo self-assigned this Apr 24, 2025
@pedronfigueiredo pedronfigueiredo requested a review from a team as a code owner April 24, 2025 13:55
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.

@metamaskbot
Copy link
Collaborator

✨ Files requiring CODEOWNER review ✨

✅ @MetaMask/confirmations

  • ui/pages/confirmations/hooks/transactions/useTransactionConfirm.ts

@metamaskbot
Copy link
Collaborator

Builds ready [8f39a48]
UI Startup Metrics (1238 ± 55 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1238113113665512781337
load106596011834811001153
domContentLoaded105995711754710941148
domInteractive18136471829
firstPaint646134118643310801144
backgroundConnect6414279
firstReactRender23155882341
getState1453681931
initialActions001001
loadScripts81872991646851899
setupStore85263914
WebpackHomeuiStartup20681703247917621832320
load15911315202513216841775
domContentLoaded15841311201813116771767
domInteractive161154101341
firstPaint1806161073226280
backgroundConnect24969142657
firstReactRender20455372117338361
getState1143751223
initialActions317134
loadScripts15801310199513016751766
setupStore1563461929
FirefoxBrowserifyHomeuiStartup13391143173812013821609
load11951018154811812411462
domContentLoaded11951018154811812411462
domInteractive1003731737117148
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect2212226232147
firstReactRender22185742226
getState9416816711
initialActions001001
loadScripts11751002152911412261419
setupStore63405611
WebpackHomeuiStartup15041343191712816001754
load12831149161810913661504
domContentLoaded12831149161810913661504
domInteractive81591582086140
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect21145272240
firstReactRender36295453848
getState943151019
initialActions102111
loadScripts12641133160110913501481
setupStore95488830
Benchmark value 1238 exceeds gate value 1234 for chrome browserify home mean uiStartup
Benchmark value 24 exceeds gate value 23 for chrome browserify home mean firstReactRender
Benchmark value 30 exceeds gate value 28 for firefox webpack home p95 setupStore
Sum of mean exceeds: 5ms | Sum of p95 exceeds: 2ms
Sum of all benchmark exceeds: 7ms

Bundle size diffs
  • background: 0 Bytes (0%)
  • ui: 2 Bytes (0%)
  • common: 0 Bytes (0%)

@pedronfigueiredo pedronfigueiredo added this pull request to the merge queue Apr 24, 2025
@DDDDDanica DDDDDanica changed the title fix: Nonce editing fix: Nonce editing cp-12.17.0 Apr 24, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Apr 24, 2025
@DDDDDanica DDDDDanica added this pull request to the merge queue Apr 24, 2025
@HowardBraham HowardBraham removed this pull request from the merge queue due to a manual request Apr 24, 2025
@HowardBraham HowardBraham added this pull request to the merge queue Apr 24, 2025
github-merge-queue bot pushed a commit that referenced this pull request Apr 24, 2025
<!--
Please submit this PR as a draft initially.
Do not mark it as "Ready for review" until the template has been
completely filled out, and PR status checks have passed at least once.
-->

## **Description**

On #31593, a new
onTransactionConfirm callback was created that handles enriching the
transaction metadata with the custom nonce before it gets sent to the
transaction controller. That callback was missing the selected custom
nonce in the dependency array.

<!--
Write a short description of the changes included in this pull request,
also include relevant motivation and context. Have in mind the following
questions:
1. What is the reason for the change?
2. What is the improvement/solution?
-->

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/32244?quickstart=1)

## **Related issues**

Fixes: #32029

## **Manual testing steps**

1. Go to this page...
2.
3.

## **Screenshots/Recordings**

<!-- If applicable, add screenshots and/or recordings to visualize the
before and after of your change. -->

### **Before**

<!-- [screenshots/recordings] -->

### **After**

<!-- [screenshots/recordings] -->

## **Pre-merge author checklist**

- [ ] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [ ] I've completed the PR template to the best of my ability
- [ ] I’ve included tests if applicable
- [ ] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [ ] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **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.
Merged via the queue into main with commit 031c0ec Apr 24, 2025
180 checks passed
@HowardBraham HowardBraham deleted the pnf/32029 branch April 24, 2025 23:35
@github-actions github-actions bot locked and limited conversation to collaborators Apr 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
team-confirmations Push issues to confirmations team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Unable to send transaction low / high nonce transaction on any network when STX is enabled
6 participants