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.
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.