truffle.js I set the account to the third ganache's account
Then I run truffle console and coinbase was set to the first account and defaultAccount to undefined. Not only that, I've tried to change the coinbase to the second account and it also didn't work
The most interesting part is: I ran a function from a contract that stores a
mapping(address=>A) v (let's say A is a contract and v the mapping name). The expected outcome from
v(web3.eth.coinbase) would be the contract's address, but there was the empty address. And when I ran
v(web3.eth.address), there was the contract's address, meaning I just have to trust the truffle's config.
But I'd like to solve this anyways, for presentation's sake