Skip to content

[Bug]: Wallet API - Adding a network from the popup and switching to that network doesn't update dapp network and when I delete that network I get Uncaught Error: NetworkClientId for domain cannot be called with a domain that has not yet been granted permissions #32501

Open
@seaona

Description

@seaona

Describe the bug

Whenever I am connected to a dapp, if I open the popup and I add a new network, I am automatically switched to that network. I can see from the MM popup that I am in the new network.
If I trigger a tx from the dapp, I still see how I am in the old network. I need to close and open the popup again in order for the network change to take effect

Expected behavior

No response

Screenshots/Recordings

domain-permissions-not-switch.mp4

Steps to reproduce

  1. Go to the test dapp
  2. Connect MM
  3. Now in the test dapp, click the MM icon
  4. Add a new network
  5. See how you are switched to that network from the popup
  6. Trigger a dapp tx
  7. See how this triggers the tx in the old network

Error messages or log output

Detection stage

In production (default)

Version

12.16.1

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.needs-triageIssue needs to be triagedregression-prod-12.16.1Regression bug that was found in production in release 12.16.1team-wallet-api-platformtype-bugSomething isn't working

    Type

    Projects

    Status

    To be fixed

    Status

    To be triaged

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions