aeternity / dex-ui

Superhero DEX - the official UI for the first automated market maker (AMM) on æternity.
https://dex.superhero.com
ISC License
6 stars 4 forks source link

Can't connect web wallet and DEX #434

Closed Liubov-crypto closed 2 years ago

Liubov-crypto commented 2 years ago

What happened?

Can't connect web wallet and DEX. After connecting, dex works on the mainnet, although the wallet is on the testnet: sh and dex mainnet

How can we reproduce it?

  1. Open wallet.superhero.com and switch to the testnet
  2. Go to https://dex.prd.aepps.com/swap
  3. Click on Connect Wallet
  4. See the error
  5. Click on Open my Wallet
  6. Click on connect with dex on the wallet pop-up
  7. See that the dex is on the mainnet after the connection with the wallet

mobile

Desktop

What browsers are you seeing the problem on?

Chrome

Anything else you want us to know?

No response

kenodressel commented 2 years ago

Could you try to clean your cache?

Liubov-crypto commented 2 years ago

Could you try to clean your cache?

Every time before I start testing I clear the cache, but I get this error. My browser is Brave, it wasn't in the drop-down list

kenodressel commented 2 years ago

Ah okay, so i could reproduce your issue with chrome, until i cleared the cache once, then it was working fine for me again.

kenodressel commented 2 years ago

Do you observe a similar behavior or does it persist for you even after the cleared cache?

Liubov-crypto commented 2 years ago

Do you observe a similar behavior or does it persist for you even after the cleared cache?

It persists after clearing the cache. Dex can stay on the mainnet for a long time, and then spontaneously switch to the testnet

Liubov-crypto commented 2 years ago

For me, this error is still reproduced: err

https://user-images.githubusercontent.com/69896204/182390187-7c120636-b8bc-4e6e-a712-f59df820e3c5.mov

kenodressel commented 2 years ago

Okay I can now reproduce it. Basically its an issue on desktop if you don't have the extension installed. There is no way to switch to testnet on that mode currently, hence its not a bug. That we are showing this message is unfortunate but it surprisingly still works for me once you click on the open wallet as it seems to do for you.

CedrikNikita commented 2 years ago

https://github.com/aeternity/dex-ui/pull/440#issuecomment-1205041310