MyBitFoundation / MyBit-Trust.app

🔷🔏 MyBit Trust Application Front End
https://trust.mybit.io
MIT License
1 stars 8 forks source link

Context/BlockchainInfo: Auto refresh on Metamask user change. Fixes #197 #4

Closed cryptomental closed 5 years ago

cryptomental commented 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

cryptomental commented 5 years ago

Perhaps instead of window.web3 , global Web3 object could also be used (both solutions work).