MetaMask / metamask-extension

:globe_with_meridians: :electric_plug: The MetaMask browser extension enables browsing Ethereum blockchain enabled websites
https://metamask.io
Other
11.87k stars 4.85k forks source link

Unable to switch accounts #4710

Closed rjotwani closed 6 years ago

rjotwani commented 6 years ago

I'm creating a dApp with a React.js frontend (on Windows if that matters) and I'm trying to test the dApp from multiple accounts. One account sets permissions for other accounts so I need to see things from each account's POV. I have been trying to switch accounts and call smart contract functions from different addresses, but when I switch accounts on MetaMask, transactions still send from the original address. I have tried reloading the page and restarting the React frontend, but neither of those have helped. Also, I am not getting a console message that says MetaMask has injected web3. This may have something to do with it, although I'm not sure. I am using MetaMask with Ganache-CLI (using Truffle to migrate) hosted on port 8545. The accounts I have been using have all been imported from Ganache.

rjotwani commented 6 years ago

I'm using the latest version of MetaMask and I have the same issue on both the standard and beta UI.