I'm playing about with web3js@1.0.0-beta.55 and I'm setting an HttpProvider on Ganache for my web3 instance:
this.web3Instance = new Web3(new Web3.providers.HttpProvider(environment.ethereum.provider));
I've noticed that if I call this.web3Instance.eth.getAccounts()
it returns the Ganache accounts, as I would've expected.
However, if I create a new wallet using this.web3Instance.eth.accounts.wallet.create(1);
and then call getAccounts()
again, it returns the address from the newly created wallet file, and not the accounts on my Ethereum node (i.e. Ganache).
I fail to understand why - any insight is appreciated!