vegaprotocol / vegawallet-desktop

Desktop application for Vega Protocol's wallet
MIT License
15 stars 12 forks source link

Network switching is broken #701

Closed notbot00 closed 1 year ago

notbot00 commented 1 year ago

Description

the network switcher is kind of broken, not sure what state the backend is in after updating the app config with a new default network value and restarting the service, it displays the expected network, but that doesn't kill the existing connections somehow. not sure what's the intended behaviour here, i'd expect the backend to disconnect all dApps, i'm pretty sure that's how it used to work at some point.

Steps to Reproduce

  1. start wallet on fairground
  2. connect to console fairground
  3. switch network in wallet to xyz (e.g. stagnet1)
  4. place an order
  5. approve the transaction
  6. see it succeed

Expected behaviour

Get an error response on the console site saying the wallet app is not connected to the correct network anymore.