The current toolkit does not check that the network you are connected to is the same that you connected originally, the user might have changed it, leading to actions and balances pointing to the network connected in metamask, but not the selected configured network in the toolkit
This PR aims to fix that by adding a 1s poll to ensure the user is always connected to the right network, if not, the toolkit disconnects
Links to any relevant issues
Type of change
Bug fix (a non-breaking change which fixes an issue)
Enhancement (a non-breaking change which adds functionality)
Breaking change (fix or feature that would cause existing functionality to not work as expected)
Documentation Fix
How the change has been tested
Change checklist
[ ] I have followed the contribution guidelines for this project
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] I have checked that new and existing unit tests pass locally with my changes
[ ] I have updated the CHANGELOG.md, if my changes are significant enough
Description of change
The current toolkit does not check that the network you are connected to is the same that you connected originally, the user might have changed it, leading to actions and balances pointing to the network connected in metamask, but not the selected configured network in the toolkit
This PR aims to fix that by adding a 1s poll to ensure the user is always connected to the right network, if not, the toolkit disconnects
Links to any relevant issues
Type of change
How the change has been tested
Change checklist