Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection Failure on First Attempt with Web3Modal and Polygon #2466

Open
socheatleang opened this issue Jun 26, 2024 · 1 comment
Open

Connection Failure on First Attempt with Web3Modal and Polygon #2466

socheatleang opened this issue Jun 26, 2024 · 1 comment
Labels
bug Something isn't working needs review

Comments

@socheatleang
Copy link

Link to minimal reproducible example

https://github.com/WalletConnect/react-native-examples/tree/main/dapps/W3MEthers5

Summary

Basically, I just clone react-native project from the example repo.

When attempting to connect to the Polygon Amoy network using the Web3Modal library with @web3modal/ethers5-react-native, the connection fails on the first attempt. The connection only succeeds after terminating and reopening the application. This issue occurs consistently and has been verified under various network conditions and app states.

Steps to Reproduce

  1. Initialize Web3Modal with @web3modal/ethers5-react-native configured for the Polygon Amoy or polygon network.
  2. Attempt to connect to MetaMask on the first application launch.
  3. Observe the failure to connect.
  4. Terminate the app and reopen it.
  5. Attempt to connect again and observe a successful connection.

Expected Behavior

The connection to MetaMask via Web3Modal should succeed on the first attempt without needing to restart the application after download/launch the new app

Actual Behavior

The connection fails on the first attempt and only succeeds after the application is restarted..

List of related npm package versions

"@walletconnect/client": "^1.8.0",
"@walletconnect/react-native-compat": "^2.13.3",
"@walletconnect/react-native-dapp": "^1.8.0",
"@walletconnect/web3-provider": "^1.8.0",
"@web3modal/ethers5-react-native": "^1.4.1",
"ethers": "5.7.2",
"expo": "~48.0.21",
"react-native": "0.71.14",
@socheatleang socheatleang added bug Something isn't working needs review labels Jun 26, 2024
Copy link

linear bot commented Jun 26, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs review
Projects
None yet
Development

No branches or pull requests

1 participant