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

Swap From asset balance should not rely on persisted balance registry #37610

Closed
onyb opened this issue Apr 16, 2024 · 3 comments · Fixed by brave/brave-core#23104
Closed

Swap From asset balance should not rely on persisted balance registry #37610

onyb opened this issue Apr 16, 2024 · 3 comments · Fixed by brave/brave-core#23104
Assignees
Labels
bug feature/web3/wallet Integrating Ethereum+ wallet support front-end-change This task is a front end task and doesn't need any C++ changes OS/Android Fixes related to Android browser functionality OS/Desktop QA Pass - Android ARM QA Pass-Win64 QA/Yes release-notes/include

Comments

@onyb
Copy link
Member

onyb commented Apr 16, 2024

The highlighted box in the following image does not update on successful confirmation of a Swap, even after a page reload. This is because the balance is fetched from the persisted registry, which is not live. The useScopedBalanceUpdater() hook is a better choice here.

Screenshot 2024-04-16 at 07 36 12
@kjozwiak
Copy link
Member

The above requires 1.65.116 or higher for 1.65.x verification 👍

@srirambv
Copy link
Contributor

Verification passed on

Brave 1.65.116 Chromium: 124.0.6367.60 (Official Build) (64-bit)
Revision 8727234930fb446ce6e8cf4f64a0d7234cbb1892
OS Windows 11 Version 23H2 (Build 22631.3447)
  • Verified steps from issue description
  • Verified account balance is automatically reduced when Swap confirmation happens
37610.mp4

@srirambv
Copy link
Contributor

Verification passed on Google Pixel 8 with Android 14 running 1.65.118 x64 build

  • Verified steps from issue description
  • Verified account balance is automatically reduced when Swap confirmation happens
37610.mp4

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 front-end-change This task is a front end task and doesn't need any C++ changes OS/Android Fixes related to Android browser functionality OS/Desktop QA Pass - Android ARM QA Pass-Win64 QA/Yes release-notes/include
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants