-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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: confirmation when transaction (STX) is pending cross-network #25629
Conversation
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. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #25629 +/- ##
========================================
Coverage 69.67% 69.68%
========================================
Files 1366 1366
Lines 48231 48237 +6
Branches 13304 13306 +2
========================================
+ Hits 33604 33610 +6
Misses 14627 14627 ☔ View full report in Codecov by Sentry. |
Builds ready [784cd3d]
Page Load Metrics (166 ± 166 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Builds ready [9672ed5]
Page Load Metrics (285 ± 266 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
User cannot send another transaction while having STX in 123.mov |
}, | ||
(transactions) => transactions, | ||
); | ||
|
||
export const getCurrentNetworkTransactions = createDeepEqualSelector( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we change this to use getTransactions
as a dependency to avoid the duplicated sorting?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried that yesterday but some of the unit tests started to fail. After your comment, I tried again, found the issue in the unit tests, and pushed this change to use getTransactions
.
c3aac51
Quality Gate passedIssues Measures |
Builds ready [fe62ee6]
Page Load Metrics (406 ± 326 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Description
This PR aims to fix the issue when a user has a Smart transaction in a pending state and initiates a new transaction through a dApp on a different network, the dApp transaction is generated with an empty nonce.
The issue happens due to a limitation on nonce management in the Transaction Controller. The nonce locks for the first transaction (STX) and only allows the user to submit another transaction once the first one is confirmed. This is the current behaviour for STX with transactions in the same network. This update extends the validation across different networks.
Related issues
Fixes: #25579
Manual testing steps
Screenshots/Recordings
Screencast.from.02-07-2024.14.05.18.webm
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist