Skip to content

[Bug]: WC goes back after switchChain and before sign #7878

@christopherferreira9

Description

@christopherferreira9

Describe the bug

When trying to sign to a different chain than the one selected in the wallet, it first asks the user to switch to the chain on the Dapp which is correct. The issue is that the Wallet should send back to dapp after the sign request.

Expected behavior

The wallets sends the user back to the dapp after Sign if accepting the chain switch or right after denying the chain switch

Screenshots/Recordings

Screen.Recording.2023-11-20.at.11.53.24.mov

Steps to reproduce

  1. Set your MetaMask Wallet to Goerli chain
  2. Go to https://release-2-3-0.web3modal-dev.pages.dev/v2Base
  3. Connect
  4. Sign -> Approve switch chain to mainnet -> See error

Error messages or log output

The wallet sends the user back after switching chain and not after signing.

Version

Build type

None

Device

Operating system

Other (please elaborate in the "Additional Context" section)

Additional context

Both platforms

Severity

No response

Metadata

Metadata

Labels

Sev3-lowA possible confusion or deception that is only hypothetical & has no known instances in the wildteam-sdk-deprecatedDEPRECATED: please use "team-wallet-integrations" insteadtype-bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions