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

improvement/handle provider updates #2196

Merged
merged 7 commits into from Mar 1, 2021

Conversation

estebanmino
Copy link
Contributor

@estebanmino estebanmino commented Feb 2, 2021

Description

Some issues were present when switching networks

  • Android test net for swaps didn't behave as expected
  • Provider updates triggered many getBalance calls per 500 ms (about 7)

Checklist

  • There is a related GitHub issue
  • Tests are included if applicable
  • Any added code is fully documented

Issue

Resolves #2186

@estebanmino estebanmino requested a review from a team as a code owner February 2, 2021 01:06
/**
* Refreshes all controllers that depend on the network
*/
refreshNetwork = () => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this was here because the refresh was called many times ... now configureControllersOnNetworkChange is called once when the chainId changes

@ibrahimtaveras00 ibrahimtaveras00 added the needs-qa Any New Features that needs a full manual QA prior to being added to a release. label Feb 9, 2021
Copy link
Member

@andrepimenta andrepimenta left a comment

Choose a reason for hiding this comment

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

LGTM! 👍
By the way, I think this also fixes #2113

Copy link
Contributor

@ibrahimtaveras00 ibrahimtaveras00 left a comment

Choose a reason for hiding this comment

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

This PR fixes the original issue

In regards to #2113 only Uniswap is working with this fix now, but I still have to reload for metamask.github.io/test-dapp

switching to Uniswap = https://recordit.co/h212ROp6Yf
switching on test-dapp = https://recordit.co/q4SIm97aVp

Nonetheless, passing since original issue is fixed 👍🏽

@ibrahimtaveras00 ibrahimtaveras00 added QA Passed A successful QA run through has been done and removed needs-qa Any New Features that needs a full manual QA prior to being added to a release. labels Mar 1, 2021
@estebanmino estebanmino merged commit 19a8376 into develop Mar 1, 2021
@estebanmino estebanmino deleted the improvement/handle-provider-updates branch March 1, 2021 22:55
rickycodes pushed a commit that referenced this pull request Jan 31, 2022
* fix

* chinid

* engine

* removerefresh

* test

* fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
next release QA Passed A successful QA run through has been done
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Android testnet doesn't work
4 participants