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

[FEATURE] Manage transaction state #582

Merged
merged 42 commits into from Sep 9, 2021
Merged

[FEATURE] Manage transaction state #582

merged 42 commits into from Sep 9, 2021

Conversation

gantunesr
Copy link
Member

@gantunesr gantunesr commented Sep 7, 2021

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
@gantunesr gantunesr requested review from a team and brad-decker and removed request for a team September 8, 2021 20:24
sethkfman
sethkfman previously approved these changes Sep 8, 2021
Copy link
Contributor

@sethkfman sethkfman left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@adonesky1 adonesky1 left a comment

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.

src/transaction/TransactionController.ts Outdated Show resolved Hide resolved
src/transaction/TransactionController.ts Show resolved Hide resolved
src/transaction/TransactionController.ts Outdated Show resolved Hide resolved
src/transaction/TransactionController.ts Outdated Show resolved Hide resolved
src/util.ts Outdated Show resolved Hide resolved
adonesky1
adonesky1 previously approved these changes Sep 9, 2021
Copy link
Contributor

@adonesky1 adonesky1 left a comment

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 main Sep 9, 2021
@gantunesr gantunesr deleted the feat/tx-state branch September 9, 2021 15:03
MajorLift pushed a commit that referenced this pull request Oct 11, 2023
MajorLift pushed a commit that referenced this pull request Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants