0

I follow the instruction video "Code Your Own Cryptocurrency on Ethereum (Full)" from Dapp University on youtube. What is different when i use web3.eth.account.

Here is from tutorial

enter image description here

Here was i do it my self (it's doesn't give me some address):

enter image description here

0

If the video is quite old it is possible that the video was made when web3 was still around version 0.20.0 for which the function effectively retrieved the accounts list.

Since then web3 is on version 1.0.0-beta.x for which you'll need to call web3.eth.getAccounts() method to retrieve the list of accounts.

see the documentation

  • It's work, thanks – johnho.91 Apr 19 at 7:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.