-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[FIX] Update selected network when delete network manually inserted #5219
[FIX] Update selected network when delete network manually inserted #5219
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested on
Samsung Galaxy M21 Android 12, One UI Core version 4.1
iPhone Xr iOS 16.1.1
Issue_01: User is switched to the Mainnet after deleting custom network while on a different custom network
Steps to reproduce:
- Select Avalanche network via network picker
- Change selected network to goerili
- Go to Settings/Network
- Open Avalanche network
- Note that the network is not changed to Avalanche
- Click delete
- Go back to the wallet
Actual result: user is on Mainnet 5219_Issue_01.mov
Expected result: user is on goerli network
Note: the bug will not be reproducible if you delete the network by hard pressing Avalanche network and deleting it from the pop-up. 5219_expected.mov
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested on
Samsung Galaxy M21 Android 12, One UI Core version 4.1
iPhone Xr iOS 16.1.1
fix/5117-network-picker-not-update-correctly: commit 87c241a
User is able to switch the network, the network picker is updated accordingly. Issue_01 confirmed fixed.
e2e tests passed
Description
When comparing two rpc url, and one was inserted manually, we were comparing the selected network url (example: "https://rpc.gnosischain.com") with the rpc url of the network we want to delete (example: "https://rpc.gnosischain.com") and this is false, only when it's true we change the network to mainnet
Proposed Solution
Comparing two rpc url with an existing function, that converts the rpc url to an object for we to be sure they are the same.
Test Cases
Case 1:
Case 2:
Case 3:
Screenshots/Recordings
https://recordit.co/DtgAlb5F23
Issue
Progresses #5117
Checklist