buildspace / buildspace-projects

The home of our open-source projects.
https://buildspace.so/projects
Creative Commons Attribution Share Alike 4.0 International
3.01k stars 1.09k forks source link

✨ [Intro to Solidity: Ship an Ethereum dApp]: <1> - <Get your local Ethereum networking running> #1598

Closed Heph789 closed 1 year ago

Heph789 commented 1 year ago

What You Are Changing

In the Solidity and Web3 project in section 1 under "Get your local Ethereum networking running", it tells us to run npx hardhat accounts, but this results in the following error. I believe that this command was taken out of the new version of hardhat.

image

Anything else?

Any other thoughts or concerns? Let us know!

helloitsm3 commented 1 year ago

Thanks for this. The reason why it throws this error is because you currently don't have any tasks named accounts in your hardhat.config.js. Do refer to the solution here