-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Related issue: https://github.com/RetricSu/godwoken-kicker/pull/224
- Loading branch information
Showing
2 changed files
with
9 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 = { | ||
|
@@ -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 | ||
|