Hey guys, I'm trying to fetch the first account using web3.eth.accounts[0] using truffle, but couldn't seem to make it work. I'm using version 0.5.0. I read that the command is deprecated and have to use web3.eth.getAccounts(). The latter only displays an array of accounts connected to the local network.
How do I get a specific account in this case? I wanted to pass some metadata from to a public function in my contract.
Jan 10, 2019, 3:24 PM