Skip to content

[FEATURE] Manage transaction state - #582

Merged
gantunesr merged 42 commits into
mainfrom
feat/tx-state
Sep 9, 2021
Merged

[FEATURE] Manage transaction state#582
gantunesr merged 42 commits into
mainfrom
feat/tx-state

Conversation

@gantunesr

@gantunesrgantunesr commented Sep 7, 2021

Copy link
Copy Markdown
Member

Description

This development only affects the mobile app since the extension has its own Transaction Controller

Improvement on how we process transaction state by updating the Transaction Controller. The extension currently has a Transaction State Controller to handle user scenarios, something we lack.

Use Cases

  • On transaction history we're currently using the gas values that the user sent the transaction with, but in many cases the actual gas spent was less so we are showing misleading information.
  • Wrong transaction state: Showing failed transaction, when the tx was successful.
  • Wrong transaction state: “Dropped and replaced” shows up in etherscan and our end shows pending
  • The states of transactions 2 transactions with same nonce are shown wrongly.
  • Transactions get stuck in the "Submitted" status.

gantunesr added 29 commits September 1, 2021 12:14
Comment threadsrc/transaction/TransactionController.test.ts Outdated
@gantunesr
gantunesr requested review from a team and brad-decker and removed request for a teamSeptember 8, 2021 20:24
sethkfman
sethkfman previously approved these changes Sep 8, 2021

@sethkfmansethkfman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@adonesky1adonesky1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

A few questions! Nothing major though.

Comment threadsrc/transaction/TransactionController.ts Outdated
Comment threadsrc/transaction/TransactionController.ts
Comment threadsrc/transaction/TransactionController.ts Outdated
Comment threadsrc/transaction/TransactionController.ts Outdated
Comment threadsrc/util.ts Outdated
Comment threadsrc/transaction/TransactionController.ts Outdated
Comment threadsrc/transaction/TransactionController.ts
Comment threadsrc/transaction/TransactionController.ts Outdated
Comment threadsrc/transaction/TransactionController.ts Outdated
Comment threadsrc/transaction/TransactionController.ts Outdated
Comment threadsrc/transaction/TransactionController.ts Outdated
adonesky1
adonesky1 previously approved these changes Sep 9, 2021

@adonesky1adonesky1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Tiny comment non-blocking nits. LGTM!

@gantunesr
gantunesr merged commit 3f5ca30 into mainSep 9, 2021
@gantunesr
gantunesr deleted the feat/tx-state branch September 9, 2021 15:03
amitabh94 pushed a commit to amitabh94/core that referenced this pull request Jun 16, 2026
* 24.0.0
* chore(release): updated CHANGELOG for 24.0.0
---------
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: rarquevaux <r.arquevaux@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancementNew feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@gantunesr@Gudahtt@sethkfman@adonesky1