I am following a truffle tutorial where the individual users
web3.eth.accounts to retrieve all the accounts from Ganash. However that seemed depreciated and to duplicate his results I used
web3.eth.getAccounts() as you can see below.
However a next command is ran in truffle console
web3.eth.accounts which presents account at position 1 (well the first account).
Ultimately, this is my problem as I cannot yet figure out how to accomplish the same in truffle 5.I have tried
web3.eth.getAccounts().then(e => let firstAcc=e; console.log(firstAcc)); which was suggested but neither works. Appreciate any help or guidance I could receive to assist me with this small issue.