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

[Bug]: Token list does not update when switching networks using the RPC Link #13091

Closed
Unik0rnMaggie opened this issue Jan 21, 2025 · 0 comments · Fixed by #13097
Closed

[Bug]: Token list does not update when switching networks using the RPC Link #13091

Unik0rnMaggie opened this issue Jan 21, 2025 · 0 comments · Fixed by #13097
Assignees
Labels
regression-RC-7.39.0 Regression bug that was found in release candidate (RC) for release 7.39.0 release-7.40.0 Issue or pull request that will be included in release 7.40.0 release-blocker This bug is blocking the next release Sev2-normal An issue that may lead to users misunderstanding some limited risks they are taking team-assets type-bug Something isn't working

Comments

@Unik0rnMaggie
Copy link
Contributor

Describe the bug

When switching networks using the RPC Link, the token list does not update, showing the tokens from the previously selected network

Expected behavior

Token list to update

Screenshots/Recordings

Switch.Network.RPC.link.iOS.mov
Switch.Network.RPC.link.Android.mov

Steps to reproduce

  1. Click on Networks
  2. Click on RPC link corresponding to any popular network
  3. Notice the token list does not update

Error messages or log output

Detection stage

During release testing

Version

7.39.0

Build type

None

Device

iPhone 15, Pixel 6 Pro

Operating system

iOS, Android

Additional context

No response

Severity

No response

@Unik0rnMaggie Unik0rnMaggie added the type-bug Something isn't working label Jan 21, 2025
@github-project-automation github-project-automation bot moved this to To be fixed in Bugs by severity Jan 21, 2025
@github-project-automation github-project-automation bot moved this to To be fixed in Bugs by team Jan 21, 2025
@metamaskbot metamaskbot added the regression-RC-7.39.0 Regression bug that was found in release candidate (RC) for release 7.39.0 label Jan 21, 2025
@Unik0rnMaggie Unik0rnMaggie added release-blocker This bug is blocking the next release team-assets labels Jan 21, 2025
@gauthierpetetin gauthierpetetin added the Sev2-normal An issue that may lead to users misunderstanding some limited risks they are taking label Jan 21, 2025
github-merge-queue bot pushed a commit that referenced this issue Jan 22, 2025
## **Description**

When the user adds multiple RPCs for a certain network and switch
between networks by clicking on the RPC link; the tokenList does not
update correctly

## **Related issues**

Fixes: #13091

## **Manual testing steps**

1. Click on Network filter
2. Add new RPC for a network
3. Switch back and forth between networks by clicking on the rpc link
4. You should see correct tokenList

## **Screenshots/Recordings**

<!-- If applicable, add screenshots and/or recordings to visualize the
before and after of your change. -->

### **Before**

<!-- [screenshots/recordings] -->
Checkout video in the linked issue 🙏 

### **After**

<!-- [screenshots/recordings] -->


https://github.com/user-attachments/assets/aff21d16-db9d-4c1e-9150-bf9176f89846


## **Pre-merge author checklist**

- [ ] I’ve followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Mobile
Coding
Standards](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [ ] I've completed the PR template to the best of my ability
- [ ] I’ve included tests if applicable
- [ ] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [ ] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [ ] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [ ] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
@github-project-automation github-project-automation bot moved this from To be fixed to Fixed in Bugs by team Jan 22, 2025
@metamaskbot metamaskbot added the release-7.40.0 Issue or pull request that will be included in release 7.40.0 label Jan 22, 2025
runway-github bot added a commit that referenced this issue Jan 22, 2025
## **Description**

When the user adds multiple RPCs for a certain network and switch
between networks by clicking on the RPC link; the tokenList does not
update correctly

## **Related issues**

Fixes: #13091

## **Manual testing steps**

1. Click on Network filter
2. Add new RPC for a network
3. Switch back and forth between networks by clicking on the rpc link
4. You should see correct tokenList

## **Screenshots/Recordings**

<!-- If applicable, add screenshots and/or recordings to visualize the
before and after of your change. -->

### **Before**

<!-- [screenshots/recordings] -->
Checkout video in the linked issue 🙏 

### **After**

<!-- [screenshots/recordings] -->


https://github.com/user-attachments/assets/aff21d16-db9d-4c1e-9150-bf9176f89846


## **Pre-merge author checklist**

- [ ] I’ve followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Mobile
Coding
Standards](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [ ] I've completed the PR template to the best of my ability
- [ ] I’ve included tests if applicable
- [ ] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [ ] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [ ] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [ ] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
runway-github bot added a commit that referenced this issue Jan 22, 2025
## **Description**

When the user adds multiple RPCs for a certain network and switch
between networks by clicking on the RPC link; the tokenList does not
update correctly

## **Related issues**

Fixes: #13091

## **Manual testing steps**

1. Click on Network filter
2. Add new RPC for a network
3. Switch back and forth between networks by clicking on the rpc link
4. You should see correct tokenList

## **Screenshots/Recordings**

<!-- If applicable, add screenshots and/or recordings to visualize the
before and after of your change. -->

### **Before**

<!-- [screenshots/recordings] -->
Checkout video in the linked issue 🙏

### **After**

<!-- [screenshots/recordings] -->

https://github.com/user-attachments/assets/aff21d16-db9d-4c1e-9150-bf9176f89846

## **Pre-merge author checklist**

- [ ] I’ve followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Mobile
Coding
Standards](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [ ] I've completed the PR template to the best of my ability
- [ ] I’ve included tests if applicable
- [ ] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [ ] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [ ] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [ ] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
runway-github bot pushed a commit that referenced this issue Jan 22, 2025
…on (#13097)

## **Description**

When the user adds multiple RPCs for a certain network and switch
between networks by clicking on the RPC link; the tokenList does not
update correctly

## **Related issues**

Fixes: #13091

## **Manual testing steps**

1. Click on Network filter
2. Add new RPC for a network
3. Switch back and forth between networks by clicking on the rpc link
4. You should see correct tokenList

## **Screenshots/Recordings**

<!-- If applicable, add screenshots and/or recordings to visualize the
before and after of your change. -->

### **Before**

<!-- [screenshots/recordings] -->
Checkout video in the linked issue 🙏 

### **After**

<!-- [screenshots/recordings] -->


https://github.com/user-attachments/assets/aff21d16-db9d-4c1e-9150-bf9176f89846


## **Pre-merge author checklist**

- [ ] I’ve followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Mobile
Coding
Standards](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [ ] I've completed the PR template to the best of my ability
- [ ] I’ve included tests if applicable
- [ ] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [ ] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [ ] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [ ] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
sahar-fehri added a commit that referenced this issue Jan 22, 2025
## **Description**

When the user adds multiple RPCs for a certain network and switch
between networks by clicking on the RPC link; the tokenList does not
update correctly

## **Related issues**

Fixes: #13091

## **Manual testing steps**

1. Click on Network filter
2. Add new RPC for a network
3. Switch back and forth between networks by clicking on the rpc link
4. You should see correct tokenList

## **Screenshots/Recordings**

<!-- If applicable, add screenshots and/or recordings to visualize the
before and after of your change. -->

### **Before**

<!-- [screenshots/recordings] -->
Checkout video in the linked issue 🙏 

### **After**

<!-- [screenshots/recordings] -->


https://github.com/user-attachments/assets/aff21d16-db9d-4c1e-9150-bf9176f89846


## **Pre-merge author checklist**

- [ ] I’ve followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Mobile
Coding
Standards](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [ ] I've completed the PR template to the best of my ability
- [ ] I’ve included tests if applicable
- [ ] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [ ] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [ ] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [ ] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
sethkfman pushed a commit that referenced this issue Jan 23, 2025
## **Description**

Cherry picks #13097

## **Related issues**

Fixes: #13091

## **Manual testing steps**

1. Click on Network filter
2. Add new RPC for a network
3. Switch back and forth between networks by clicking on the rpc link
4. You should see correct tokenList

## **Screenshots/Recordings**

<!-- If applicable, add screenshots and/or recordings to visualize the
before and after of your change. -->

### **Before**

<!-- [screenshots/recordings] -->
Checkout video in the linked issue 🙏 

### **After**

<!-- [screenshots/recordings] -->



https://github.com/user-attachments/assets/aff21d16-db9d-4c1e-9150-bf9176f89846


## **Pre-merge author checklist**

- [ ] I’ve followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Mobile
Coding

Standards](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [ ] I've completed the PR template to the best of my ability
- [ ] I’ve included tests if applicable
- [ ] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [ ] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [ ] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [ ] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.

<!--
Please submit this PR as a draft initially.
Do not mark it as "Ready for review" until the template has been
completely filled out, and PR status checks have passed at least once.
-->

## **Description**

<!--
Write a short description of the changes included in this pull request,
also include relevant motivation and context. Have in mind the following
questions:
1. What is the reason for the change?
2. What is the improvement/solution?
-->

## **Related issues**

Fixes:

## **Manual testing steps**

1. Go to this page...
2.
3.

## **Screenshots/Recordings**

<!-- If applicable, add screenshots and/or recordings to visualize the
before and after of your change. -->

### **Before**

<!-- [screenshots/recordings] -->

### **After**

<!-- [screenshots/recordings] -->

## **Pre-merge author checklist**

- [ ] I’ve followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Mobile
Coding
Standards](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [ ] I've completed the PR template to the best of my ability
- [ ] I’ve included tests if applicable
- [ ] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [ ] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [ ] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [ ] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
regression-RC-7.39.0 Regression bug that was found in release candidate (RC) for release 7.39.0 release-7.40.0 Issue or pull request that will be included in release 7.40.0 release-blocker This bug is blocking the next release Sev2-normal An issue that may lead to users misunderstanding some limited risks they are taking team-assets type-bug Something isn't working
Projects
Archived in project
Status: Fixed
Development

Successfully merging a pull request may close this issue.

4 participants