Skip to content

[Bug]: Network Switch - Weird screen appears when I trigger the wallet_switchEthereumChain method and pending notification number keeps adding up #27977

@seaona

Description

@seaona

Describe the bug

The classical weird screen appears when I trigger a wallet_switchEthereumChain method on a second dapp, after triggering a signature and a wallet_switchEthereumChain on a first dapp . The notification number keeps adding up in the MM icon, no matter if I close the screen.
The recovery path is to click the reload button from the Extension.

Screenshot from 2024-10-21 08-21-50

Expected behavior

Screenshots/Recordings

weitd-screen.mp4

Steps to reproduce

  1. Go to test dapp and open the console
  2. Being on Sepolia, trigger a signature
  3. Switch to Mainnet using switchEthereumChain method
  4. Go to another dapp and switch to Sepolia using switchEthereumChain
  5. See screen
await window.ethereum.request({
 "method": "wallet_switchEthereumChain",
 "params": [
  {
    chainId: "0xAA36A7"
  }
],
});

Error messages or log output

No response

Detection stage

On the development branch

Version

last develop (oct 21st) - commit 4eaeb68

Build type

None

Browser

Chrome

Operating system

Linux

Hardware wallet

No response

Additional context

No response

Severity

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Sev2-normalNormal severity; minor loss of service or inconvenience.regression-RC-12.6.0Regression bug that was found in release candidate (RC) for release 12.6.0release-12.7.0Issue or pull request that will be included in release 12.7.0release-blockerThis bug is blocking the next releaseteam-wallet-api-platform-deprecatedDEPRECATED: please use "team-wallet-integrations" insteadtype-bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions