Skip to content

[Bug]: Switching networks on the UI does not work consistently #13710

Open
@brad-za

Description

Describe the bug

When there are more than one networks, the connection approves all of them . Then when trying to sign a tx, if the network has been switched to a new one, for the first time, then metamask will open via the deeplink, it will show that its connected to the new network then show the tx to sign.

If we reject this tx and switch networks to something that metamask has already opened and confirmed, then the switching does not deeplink to metamask but the ui still changes. When trying to initiate a tx, metamask open, switches networks and then instantly goes back to the dapp, this doesn't sign the tx and doesn't throw an error, it just doesn't work.

Expected behavior

Metamask should either always deeplink when switching networks on mobile or it should handle the switching better and not kick back to the dapp so quickly.

Screenshots/Recordings

No response

Steps to reproduce

  1. user connects with one network.
    metamask opens and approves all networks
  2. user connects with the second network
    metamask opens to confirm new network
  3. user switches back to the first network again
    metamask doesn't open as the network has already been confirmed, the ui does update and the new network is active
  4. user tries to signs tx
  5. deep links to metamask
    metamask opens to sign the tx, but switches networks and sends back to the dapp instead of switching then signing
  6. metamask automatically returns to the dapp before the tx can be signed

Error messages or log output

No errors or useful logs

Detection stage

During release testing

Version

7.40.0

Build type

None

Device

Samsung S23

Operating system

Android

Additional context

No response

Severity

This renders my whole dapp useless on mobile as the user cannot actually send and receive transactions on my multi chain dapp

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Sev2-normalAn issue that may lead to users misunderstanding some limited risks they are takingexternal-contributorregression-RC-7.40.0Regression bug that was found in release candidate (RC) for release 7.40.0team-sdkSDK teamtype-bugSomething isn't working

    Type

    No type

    Projects

    • Status

      To be fixed
    • Status

      To be fixed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions