-
-
Notifications
You must be signed in to change notification settings - Fork 266
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(suite): disable tx bumpfee except lowestnonc #14395
Conversation
8d173d4
to
90a6b17
Compare
Learn more link - https://trezor.io/learn/a/replace-by-fee-rbf-ethereum |
90a6b17
to
28531cb
Compare
28531cb
to
8154de5
Compare
What about using "oldest pending transaction", instead of first? Does that make sense? |
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.
Codewise looks good, just some comments to make it neat.
And please, create the unit test if possible.
I didn't yet get to test it, then I'll finish the CR..
packages/suite/src/components/wallet/TransactionItem/TransactionItem.tsx
Outdated
Show resolved
Hide resolved
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 tested it and it works correctly for ethereum-type networks ✔️
But it also disables button & displays tooltip for non-ethereum network txs (bitcoin testnet) ❌
I believe this is undesired, right?
Yes, thank you, will fix that |
Oldest by nonce, not by time |
28d9b21
to
8d57659
Compare
8d57659
to
cbcc6dc
Compare
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.
Thanks, it's working as expected ✔️
Codewise looking great 🚀
getTransactionWithLowestNonce
could do with unit tests
cbcc6dc
to
c5d0a5a
Compare
I pushed the tests 😼 |
c5d0a5a
to
3b8e312
Compare
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.
Good job adding the unit tests, now the code is a bit safer 👍
Description
Disable all the bump fees buttons except the transaction with the lowest nonce (the oldest transaction). Tooltip is displayed only on the disabled buttons.
Related Issue
Resolve #13529
Screenshots: