WalletConnect / web3modal-react-native

Web3Modal React-Native SDK
https://web3modal.com
Apache License 2.0
43 stars 14 forks source link

React Native - Bug when select network. #157

Open tomheo11233aA opened 2 months ago

tomheo11233aA commented 2 months ago

Describe the bug When I first logged into the MetaMask wallet - version 7.19.1 on 10th April 2024, using , I encountered an issue. After a successful connection, when I attempted to select and change the network, it would open the MetaMask app. Occasionally, it would display a modal to connect with the network, but other times it would not. I need to select by myself to connect network.

SDK Version (if relevant)

To Reproduce Steps to reproduce the behavior:

  1. Click on W3Button
  2. Select Metamask wallet
  3. Connect to Metamask account.
  4. Click on W3Button again
  5. Click on Button to select network
  6. Select another network
  7. Waiting to show modal to accept network
  8. If modal doesn't show need to select password by yourself
  9. Comeback to App
  10. Click on outside of bottom sheet.
  11. Click on W3Button
  12. Click on Button to select network.
  13. Select the network you just selected again
  14. Sometimes it will show {"context": "client"} Request expired. Please try again. Or {"context": "client"} {"code": -32602,"message":"May not specify default MetaMask chain."}

Expected behavior A clear and concise description of what you expected to happen.

Screenshots

Video https://github.com/WalletConnect/walletconnect-monorepo/assets/127393321/72f0c1b8-3433-4274-83cd-a3fe57360160

Repository https://github.com/tomheo11233aA/Web3SampleApp.git

tomheo11233aA commented 2 months ago

Sometimes it shows this, sometimes it does not (in my video, this modal is not displayed).

ignaciosantise commented 2 months ago

Hey @tomheo11233aA 👋 Thanks for reporting.

This is a known issue from Metamask, they'll release a new version soon that aims to fix it. Let's wait until then to see if they solved it.

If this is blocking you, i recommend using another wallet in the meantime

ignaciosantise commented 1 month ago

hey @tomheo11233aA were you able to retest this with MetaMask latest version?