Skip to content

Commit

Permalink
Replace ganache-cli with hardhat (#154)
Browse files Browse the repository at this point in the history
Co-authored-by: Jacek Sieka <jacek@status.im>
  • Loading branch information
kubo39 and arnetheduck authored Sep 29, 2024
1 parent 0cc03e6 commit 3688225
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ The humble beginnings of a Nim library similar to web3.[js|py]

You can install the developement version of the library through nimble with the following command

```
```console
nimble install https://github.com/status-im/nim-web3@#master
```

## Development

You should first run `./simulator.sh` which runs `ganache-cli`
You should first run `./simulator.sh` which runs `hardhat node`

This creates a local simulated Ethereum network on your local machine and the tests will use this for their E2E processing

Expand Down
4 changes: 2 additions & 2 deletions simulator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
# npm i -g nodemon

# Watch all nim files for changes
# When a file change is detected we will restart ganache-cli
# When a file change is detected we will restart hardhat node
# This ensures that our deposit contracts have enough ETH as
# it seems like some of the tests do not properly initialise
# their contracts at this time. (state persists across runs)

nodemon --ext '.nim' --watch tests --watch web3 --exec "ganache-cli"
nodemon --ext '.nim' --watch tests --watch web3 --exec "npx hardhat node"

0 comments on commit 3688225

Please sign in to comment.