After switching to testnet from the dropdown in Metamask, the address used is still my Mainnet address.
web3.eth.getAccounts(function(a,b) {
Merchant.accounts = b;
console.log("Merchant accounts: " + Merchant.accounts);
let x = web3.eth.getBalance;
console.log(x);
});
shows 0xc27a6adac593d1c02355f307ea92f6261269566d
, my mainnet address.
I've tried sending funds via truffle console:
truffle(development)> ma
'0xc27a6adac593d1c02355f307ea92f6261269566d'
truffle(development)> web3.eth.sendTransaction({from: web3.eth.accounts[1], to: ma, value: 10000000000000})
'0x9c59733f9e8bed3f13d6f96589894239a43af6a5e387b40e7a9fad4e0157aaa7'
I don't see the balance change in MetaMask.
How do I add funds to my test Metamask?