keep-network / tbtc-dapp

Deposit BTC and redeem TBTC
http://dapp.test.tbtc.network/
MIT License
33 stars 31 forks source link

dApp fails to handle Metamask account switches #231

Open cryptocrs opened 3 years ago

cryptocrs commented 3 years ago

Purpose: Switch Metamask account before begining step 1. Throws the error: WalletMiddleware - Invalid "from" address. { "originalError": {} }

Steps to reproduce -

  1. on metamask account 1.
  2. connect tBTC to metamask
  3. switch metamask account to account 2.
  4. begin now on step 1.
  5. throws an error.

image

Dev console logs - tbtclog2.log

cryptocrs commented 3 years ago

Looks like some fixes are going now related to this. It now prompts to switch account- good !! Let me know once complete, I will do more testing.

Shadowfiend commented 3 years ago

Hey @chdru, try having a look now. Honestly I wouldn't be surprised if it still doesn't work, but I'm curious.

cryptocrs commented 3 years ago

It now throws the below error -

image

Here is the console logs; dapp.test.tbtc.network-metamask.log