Replace ganache-cli with hardhat (#154)

Co-authored-by: Jacek Sieka <jacek@status.im>
This commit is contained in:
Hiroki Noda 2024-09-30 05:48:19 +09:00 committed by GitHub
parent 0cc03e67dd
commit 3688225816
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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"