When executing wallet_switchEthereumChain, chainChanged event is not fired

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

  1. after logging into Coinbase Wallet, from our Web Application, switch the network with wallet_switchEthereumChain. This switches successfully.

  2. 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.

Thank you in advance.

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!

1 Like

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.

1 Like

Hello @riza.espiritu
I understand the results of the survey.
Thanks to all of you for taking time out of your busy schedule to respond promptly.