From 368822581602d758c8e1b7d5fddf66391be5f27e Mon Sep 17 00:00:00 2001 From: Hiroki Noda <927749+kubo39@users.noreply.github.com> Date: Mon, 30 Sep 2024 05:48:19 +0900 Subject: [PATCH] Replace ganache-cli with hardhat (#154) Co-authored-by: Jacek Sieka --- README.md | 4 ++-- simulator.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 239a05d..dd76c1c 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/simulator.sh b/simulator.sh index 32332ec..c2e13e2 100755 --- a/simulator.sh +++ b/simulator.sh @@ -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"