Skip to content

Commit

Permalink
fix(docs): avoid HH12 issue (#225)
Browse files Browse the repository at this point in the history
  • Loading branch information
keroro520 authored Apr 15, 2022
1 parent 99ace12 commit 64643c7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/hardhat-simple-project.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
9 changes: 7 additions & 2 deletions docs/hardhat-simple-project.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,23 @@

```sh
$ git clone --depth=1 ssh://[email protected]/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
```

### 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 = {
Expand All @@ -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
Expand Down

0 comments on commit 64643c7

Please sign in to comment.