Hello!
I am not good at English. Here’s a translation, sorry.
I would like to confirm if what is happening now is a spec or a bug.
Steps to reproduce
after logging into Coinbase Wallet, from our Web Application, switch the network with wallet_switchEthereumChain. This switches successfully.
then, from the Coinbase Wallet extension screen, from the default network selectbox, when switching networks, the chainChanged Eventlistener does not respond.
(Assumption is that it reacts before executing wallet_switchEthereumChain).
My Environment
OS: windows11,
browser: Google Chrome version: 102.0.5005.115,
coinbase sdk version: @coinbase/wallet-sdk": “^3.3.0”
It may be a bug in our application side implementation.
In that case, sorry.
Hello @yuuuuut. Welcome to the forum! Thank you for taking an interest in using our Coinbase APIs. For the details regarding your concern, we will check on this for you with our team. We will get back to you once we have more information. Keep in touch!
Hello @yuuuuut. Thanks for your patience while we consult this with our team.
The default network feature controls which network is selected by default when opening a new DApp. It doesn’t change the network for DApps to which you are already connected - because of this the “chainChanged” event is not expected to trigger when switching networks in the default network setting.