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]: Watch Asset request sends the response on a wrong network #21876

Closed
benjisclowder opened this issue Nov 17, 2023 · 1 comment · Fixed by #21946
Closed

[Bug]: Watch Asset request sends the response on a wrong network #21876

benjisclowder opened this issue Nov 17, 2023 · 1 comment · Fixed by #21946
Assignees
Labels
regression-prod-11.6.0 Regression bug that was found in production in release 11.6.0 release-11.6.0 Issue or pull request that will be included in release 11.6.0 release-11.7.0 Issue or pull request that will be included in release 11.7.0 release-blocker This bug is blocking the next release team-assets type-bug

Comments

@benjisclowder
Copy link
Contributor

Describe the bug

Deploying contract for erc-20 on the Test Dapp while on the Sepolia network gives a successful response, but the next step, watching the asset or adding it to the wallet sends confirmation on Sepolia, but the tokens are then displayed on Goerli network, without any contract being deployed there.

Expected behavior

Watch Asset request should send a confirmation on Sepolia for contracts deployed on the same network and upon confirmation, the assets are displayed on the chosen network (Sepolia here).

Screenshots/Recordings

Screen.Recording.2023-11-17.at.13.48.05.mov

Steps to reproduce

  1. Load MetaMask and the test dapp: https://metamask.github.io/test-dapp/
  2. Switch to Sepolia and connect MetaMask to the test dapp
  3. Switch to Goerli --> Notice that no TST tokens are displayed
  4. Switch to Sepolia again
  5. In the test dapp, deploy erc-20 contract
  6. Confirm the request
  7. Proceed to add token/watch asset
  8. Confirm the request
  9. In the tokens list, notice that no TST tokens are displayed
  10. Switch to Goerli network, the tokens show there.
  11. Switch again to Sepolia, copy the token contract address from the test dapp and proceed to import tokens
  12. Notice that you can import manually and the tokens are displayed correctly this way.

Error messages or log output

No response

Version

11.6.0

Build type

None

Browser

Chrome, Firefox

Operating system

MacOS

Hardware wallet

No response

Additional context

No response

Severity

No response

@benjisclowder benjisclowder added type-bug team-confirmations-secure-ux DEPRECATED: please use "team-confirmations" label instead team-confirmations-system DEPRECATED: please use "team-confirmations" label instead release-11.6.0 Issue or pull request that will be included in release 11.6.0 labels Nov 17, 2023
@metamaskbot metamaskbot added the regression-prod-11.6.0 Regression bug that was found in production in release 11.6.0 label Nov 17, 2023
@benjisclowder benjisclowder mentioned this issue Nov 17, 2023
13 tasks
@bschorchit bschorchit added team-assets and removed team-confirmations-secure-ux DEPRECATED: please use "team-confirmations" label instead team-confirmations-system DEPRECATED: please use "team-confirmations" label instead labels Nov 17, 2023
@benjisclowder benjisclowder added the release-blocker This bug is blocking the next release label Nov 17, 2023
@adonesky1 adonesky1 self-assigned this Nov 22, 2023
adonesky1 added a commit that referenced this issue Nov 22, 2023
…e request queue experimental toggle enabled (#21946)

In #21522, the
`perDomainNetwork` state was left as always enabled. This state should
be toggled on and off with the `Select networks for each site`
experimental setting.

Fixes: #21876

## **Manual testing steps**

Pertaining to the fix for #21876
1. Load MetaMask and the test dapp:
https://metamask.github.io/test-dapp/
2. Switch to Sepolia and connect MetaMask to the test dapp
3. Switch to Goerli --> Notice that no TST tokens are displayed
4. Switch to Sepolia again
5. In the test dapp, deploy erc-20 contract
6. Confirm the request
7. Proceed to add token/watch asset 
8. Confirm the request
9. In the tokens list, see that the TST token is present on Sepolia

## **Pre-merge author checklist**

- [x] I’ve followed [MetaMask Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've clearly explained what problem this PR is solving and how it
is solved.
- [x] I've linked related issues
- [x] I've included manual testing steps
- [x] I've included screenshots/recordings if applicable
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.
- [x] I’ve properly set the pull request status:
  - [ ] In case it's not yet "ready for review", I've set it to "draft".
- [ ] In case it's "ready for review", I've changed it from "draft" to
"non-draft".

## **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.
@metamaskbot metamaskbot added the release-11.7.0 Issue or pull request that will be included in release 11.7.0 label Nov 22, 2023
@chloeYue chloeYue removed the release-11.7.0 Issue or pull request that will be included in release 11.7.0 label Nov 30, 2023
@metamaskbot metamaskbot added the release-11.7.0 Issue or pull request that will be included in release 11.7.0 label Jan 2, 2024
@metamaskbot
Copy link
Collaborator

Missing release label release-11.7.0 on issue. Adding release label release-11.7.0 on issue, as issue is linked to PR #21946 which has this release label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
regression-prod-11.6.0 Regression bug that was found in production in release 11.6.0 release-11.6.0 Issue or pull request that will be included in release 11.6.0 release-11.7.0 Issue or pull request that will be included in release 11.7.0 release-blocker This bug is blocking the next release team-assets type-bug
Projects
None yet
5 participants