Replace ganache-cli with hardhat

This commit is contained in:
Hiroki Noda 2024-06-14 02:56:04 +09:00
parent b705f81643
commit 737c610111
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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"