poanetwork / poa-dapps-voting

POA Network Governance Dapp
https://voting.poa.network
GNU General Public License v3.0
26 stars 54 forks source link

(Bug) changing account in Metamask doesn't affect changing the current account for executing txs in DApp #155

Open vbaranov opened 6 years ago

vbaranov commented 6 years ago

Problem: for example, if I changed the account from valid voting key to invalid, DApp still thinks that I logged with valid voting key and gives me the ability to send transactions.

Solution: implement interval to check out current account https://github.com/MetaMask/faq/blob/master/DEVELOPERS.md#ear-listening-for-selected-account-changes and save it to mobX store