thirdweb-dev / js

Best in class web3 SDKs for Browser, Node and Mobile apps
https://thirdweb.com
Apache License 2.0
430 stars 328 forks source link

Can't switch chain on WalletConnect #3437

Closed iamcryptofennec closed 3 months ago

iamcryptofennec commented 3 months ago

image

I use the preset of AvalancheFuji

image

image

it works on Rabby, Metamask. But on WalletConnect nope :(

thirdweb sdk : 5.29.6

iamcryptofennec commented 3 months ago

image image

On has the same problem too

http://localhost:3000/turbopack/[project]/node_modules/thirdweb/src/wallets/wallet-connect/controller.ts

it said the problem came from here, SwtichChainError

iamcryptofennec commented 3 months ago

in switchChainWC image

why doesn't it use like another wallet type? image just blockExplorerUrls: apiChain.explorers?.map((x) => x.url),

jnsdls commented 3 months ago

we'll take a look! thanks for the report

alternatively feel free to send a PR if you have a working solution to the problem!

iamcryptofennec commented 3 months ago

https://github.com/thirdweb-dev/js/pull/3465

I have PR a fixed code

jnsdls commented 3 months ago

closing, we'll release a stable version with these updates early this week! thanks for the contribution!