Closed cryptomental closed 5 years ago
Set up a callback that listens to 'update' event on Metamask publicConfigStore. If selectedAddress is different than the current one, refresh.
Fixes MyBitFoundation/MyBit-Network.tech#197
Perhaps instead of window.web3 , global Web3 object could also be used (both solutions work).
Set up a callback that listens to 'update' event on Metamask publicConfigStore. If selectedAddress is different than the current one, refresh.
Fixes MyBitFoundation/MyBit-Network.tech#197