Replace ganache-cli with hardhat
This commit is contained in:
parent
b705f81643
commit
737c610111
|
@ -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
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue