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

Issue with transactions with the same nonce, cancellations, speedups, failed txs. #9053

Closed
tmashuang opened this issue Jul 22, 2020 · 6 comments
Assignees
Labels
area-transactions Sev2-normal Normal severity; minor loss of service or inconvenience. stale issues and PRs marked as stale team-confirmations-planning (only for internal use within Confirmations team) type-bug

Comments

@tmashuang
Copy link
Contributor

Originally brought up via internal slack message. The original issue presented with subsequent transaction after a failed transaction. The tx-list-item would show the failed transasction's title/txCategory, tx details, etc instead of the newer transaction with the same nonce.

My first set was to just provide the UI with the correct tx details, but realized some information that we provide on first creation of a transaction is omitted on the primaryTransaction property of the tx (txCategory). #9040. Then showing the UI the correct/updated/newest tx details #9041.

Then prompts a discussion on the correct info to show when chaining these types of transactions.

To Reproduce
Reproduction OP slack issue

  1. Get a failed transactions

    • With the gas prices being so high, just send a transaction with ETH with a really low gas price and it should fail with transaction underpriced
  2. Propose and confirm a new transaction

    • Preferable as a different txCategory. So if the first failed transaction is a send eth, then propose an erc approve or transfer.

See that some of the data is from the first proposed failed transaction.

@brad-decker
Copy link
Contributor

Potentially related to #8831 @tmashuang?

@tmashuang
Copy link
Contributor Author

It is related, but a different flow. That solution could just be to suppress/omit hardware wallet rejection of tx from updating the tx,

@tmashuang tmashuang changed the title Issue with transactions with the same nonce, cancellations, speedups. Issue with transactions with the same nonce, cancellations, speedups, failed txs. Nov 9, 2020
tmashuang added a commit that referenced this issue Nov 20, 2020
Although the root cause is a larger issue (#9053) with our grouping txs with nonces/speedups/cancels/failures(both from the node and on-chain).
This PR allows all submitted transactions to be sped up through the use of the inline speedup in the activity log.

I do not know if this is the appropriate way we should handle this, and could lead to more user errors than solutions with their state of the tx queue.
@tmashuang
Copy link
Contributor Author

For testing purposes, on a Test Network we can take advantage of the exceeds block gas limit error from the RPC to simulate the tx failure.

Submit a tx on a testnet (Rinkeby) with a gas price < 1
Click Speed Up
Under Advanced Tab for gas limit set to 10000000000 . Gas price to 1 , this shouldn't matter though.
Click the Save button

This will/should update the tx list item to a failed state. Thus not showing any visible indication of the tx with gas price < 1 that has been submitted, and still pending on the network. I think this is fundamental issue on how we present transactions in the transaction list.

@shhac
Copy link

shhac commented Jan 13, 2021

Please include a QA step for resolving this issue where other transaction flows are also tested; e.g. the Approve Spend Limit flow which as a related (but not duplicate) issue #10129

@hilvmason hilvmason added the team-confirmations-secure-ux DEPRECATED: please use "team-confirmations" label instead label Apr 22, 2022
@hilvmason hilvmason added team-confirmations-planning (only for internal use within Confirmations team) and removed team-confirmations-secure-ux DEPRECATED: please use "team-confirmations" label instead labels Jun 5, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Sep 4, 2023

This issue has been automatically marked as stale because it has not had recent activity in the last 90 days. It will be closed in 45 days if there is no further activity. The MetaMask team intends on reviewing this issue before close, and removing the stale label if it is still a bug. We welcome new comments on this issue. We do not intend on closing issues if they report bugs that are still reproducible. Thank you for your contributions.

@github-actions github-actions bot added the stale issues and PRs marked as stale label Sep 4, 2023
@github-actions
Copy link
Contributor

This issue was closed because there has been no follow up activity in the last 45 days. If you feel this was closed in error, please reopen and provide evidence on the latest release of the extension. Thank you for your contributions.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-transactions Sev2-normal Normal severity; minor loss of service or inconvenience. stale issues and PRs marked as stale team-confirmations-planning (only for internal use within Confirmations team) type-bug
Projects
None yet
Development

No branches or pull requests

7 participants