diff --git a/.github/workflows/hardhat-simple-project.yml b/.github/workflows/hardhat-simple-project.yml index 5b27da81..00501654 100644 --- a/.github/workflows/hardhat-simple-project.yml +++ b/.github/workflows/hardhat-simple-project.yml @@ -1,3 +1,5 @@ +# This workflow simulates the steps described in `docs/hardhat-simple-project.md`. +# Code authors should ensure the workflow follows this tutorial document. name: Simple Test on: diff --git a/docs/hardhat-simple-project.md b/docs/hardhat-simple-project.md index 10dd0278..cd4cdc6b 100644 --- a/docs/hardhat-simple-project.md +++ b/docs/hardhat-simple-project.md @@ -10,7 +10,8 @@ ```sh $ git clone --depth=1 ssh://git@github.com/NomicFoundation/hardhat -$ cd hardhat/packages/hardhat-core/sample-projects/basic/ +$ mv hardhat/packages/hardhat-core/sample-projects/basic/ . +$ cd basic/ $ ls LICENSE.md README.md cache contracts hardhat.config.js scripts test ``` @@ -18,12 +19,14 @@ LICENSE.md README.md cache contracts hardhat.config.js scripts test ### Install requirements ```sh +# Enter `basic/` directory +# $ cd basic/ $ npm install --save-dev hardhat @nomiclabs/hardhat-waffle ``` ### Adapt `hardhat.config.js` to our local network of Godwoken -Add the below `network` configuration into `hardhat.config.js`: +Add the below `network` configuration into `basic/hardhat.config.js`: ```js module.exports = { @@ -45,6 +48,8 @@ module.exports = { ### Run hardhat on our local network of Godwoken by `--network gw_devnet_v1` ```sh +# Enter `basic/` directory +# $ cd basic/ $ npx hardhat accounts --network gw_devnet_v1 $ npx hardhat compile $ npx hardhat test --network gw_devnet_v1