Has web3.eth.getAccounts()
behavior changen when using MetaMask? I remember it used to return a full list of available accounts, but now it looks like it only returns array of length 1 - the current selected account.
2 Answers
It's returned an array of length 1 for over a year, I can't remember when it ever returned more.
- A MetaMask Developer
Maybe you changed the provider? See this: https://github.com/ethereumjs/testrpc/issues/54