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

Transaction status is not updated sometimes for pending transactions #21300

Closed
Douglashdaniel opened this issue Feb 24, 2022 · 6 comments · Fixed by brave/brave-core#12555
Closed
Assignees
Labels
bug feature/web3/wallet Integrating Ethereum+ wallet support OS/Android Fixes related to Android browser functionality OS/Desktop OS/iOS Fixes related to iOS browser functionality priority/P2 A bad problem. We might uplift this to the next planned release. QA Pass - Android ARM QA Pass - Android Tab QA Pass-macOS QA/Test-Plan-Specified QA/Yes release-notes/include

Comments

@Douglashdaniel
Copy link

Douglashdaniel commented Feb 24, 2022

Description

We have a transactionStatusChanged action that gets called by OnTransactionStatusChanged observer

handler.on(WalletActions.transactionStatusChanged.getType(), async (store: Store, payload: TransactionStatusChanged) => {
  const status = payload.txInfo.txStatus
  if (status === BraveWallet.TransactionStatus.Confirmed || status === BraveWallet.TransactionStatus.Error) {
    await refreshBalancesPricesAndHistory(store)
  }
})

which will update Balances if a transactions status has changed to Confirmed or Error.

Currently OnTransactionStatusChanged is not firing when a transactions status has changed to Confirmed until you lock and unlock the wallet.

@Douglashdaniel Douglashdaniel added bug feature/web3/wallet Integrating Ethereum+ wallet support OS/Desktop labels Feb 24, 2022
@bbondy bbondy added the priority/P2 A bad problem. We might uplift this to the next planned release. label Feb 24, 2022
@Pavneet-Sing Pavneet-Sing added the OS/Android Fixes related to Android browser functionality label Mar 3, 2022
@Pavneet-Sing Pavneet-Sing added the OS/iOS Fixes related to iOS browser functionality label Mar 3, 2022
@yrliou yrliou self-assigned this Mar 9, 2022
@yrliou
Copy link
Member

yrliou commented Mar 9, 2022

This issue is due to block tracker not being run so we didn't get the update. The reason that lock & unlock updates it is because when you unlock it would trigger the block tracker to start when there are pending transactions.

@yrliou yrliou changed the title OnTransactionStatusChanged Observer not Firing for Confirmed Transactions Transaction status is not updated sometimes for pending transactions Mar 9, 2022
@yrliou
Copy link
Member

yrliou commented Mar 10, 2022

See test plan in brave/brave-core#12555 (comment)

@kjozwiak
Copy link
Member

Requires 1.37.94 or later for verification using 1.37.x.

@Uni-verse
Copy link
Contributor

Verification completed on desktop using:

Brave | 1.37.102 Chromium: 99.0.4844.83 (Official Build) dev (x86_64)
-- | --
Revision | b11086e62d7c1a44b0942ac5568d22a425c7ae35-refs/branch-heads/4844_74@{#5}
OS | macOS Version 12.1 (Build 21C52)

Txn Hash: 0xee8bc52e4e9d59e4797fc73325aa074654ef86ef240e7b81348c75fb8955af56

Test Plan:
brave/brave-core#12555 (comment)

  • Verified transaction status is updated to confirmed in brave://settings/wallet/accounts

Screen Shot 2022-03-23 at 10 27 55 AM
Screen Shot 2022-03-23 at 10 28 12 AM
Screen Shot 2022-03-23 at 10 32 27 AM

@Uni-verse
Copy link
Contributor

Uni-verse commented Mar 23, 2022

Verification completed on Android ARM using Beta 1.37.101, Chromium 99.0.4844.83

Devices:
Samsung Galaxy S21 running Android 12

Txn Hash: 0xc043b4f4d4bb8cc008883a68d4383ab4441e8fea5e3ceea59971b71064ab9abf

  • Verified transaction status is updated to confirmed under wallet accounts
Submitted Confirmed
Screen Shot 2022-03-23 at 11 59 59 AM Screen Shot 2022-03-23 at 12 00 09 PM
Submitted (Tablet) Confirmed (Tablet)
screenshot-1648070051395 screenshot-1648070062473

@Uni-verse
Copy link
Contributor

Uni-verse commented Mar 23, 2022

Verification Completed on iOS using beta version 1.37 (22.3.22.17) BraveCore 1.37.101 (99.0.4844.83)

Test Devices:
iPhone 12 Pro | iOS 15.4
iPhone X | iOS 14.4.2
iPad (7th Gen) | iOS 15.2

  • Verified transaction status is updated to confirmed under wallet accounts

iOS 15:

Submitted Confirmed
IMG_2529 IMG_2530

iPad (iOS 15):

Submitted Confirmed
IMG_0203 IMG_0204

iOS 14:

Submitted Confirmed
IMG_2623 IMG_2624

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug feature/web3/wallet Integrating Ethereum+ wallet support OS/Android Fixes related to Android browser functionality OS/Desktop OS/iOS Fixes related to iOS browser functionality priority/P2 A bad problem. We might uplift this to the next planned release. QA Pass - Android ARM QA Pass - Android Tab QA Pass-macOS QA/Test-Plan-Specified QA/Yes release-notes/include
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

6 participants