telosnetwork / telos-wallet

Native & EVM Web Wallet for transfers, staking, digital collectibles, and more
https://wallet.telos.net
Apache License 2.0
9 stars 8 forks source link

WalletConnect is broken on Testnet #636

Closed Viterbo closed 1 year ago

Viterbo commented 1 year ago

Describe the bug You can't sign any transaction using WalletConnect + Metamask in testnet. This bug affects all transactions but only this one is behaving differently because the implementation differs from the rest.

To Reproduce Steps to reproduce the behavior:

  1. Open your Metamask and set Telos Mainnet as current chain
  2. Go to https://wallet-dev.telos.net
  3. Login using WalletConnect + Metamask
  4. copy your address
  5. open your console (dev tool - F12)
  6. goto Send section, paste your address, enter any amount, and wait for the error
  7. the loading never stops

Expected behavior Not to have an error, the loading ends.

Screenshots image

Viterbo commented 1 year ago

The problem comes at the moment of populating this logalStogare variable wagmi.store as you can see in the screenshot it holds the wrong network data { id: 40, ... } Captura desde 2023-10-16 19-06-41

This is causing every time Wagmi tries to call internally getNetwork(), it gets the wrong network and that causes an error later on the same call.