From 00921f93dc478cd5d9eeb27a13e9911b5981f80f Mon Sep 17 00:00:00 2001 From: Salman Dabbakuti Date: Fri, 24 Nov 2023 10:41:44 +0530 Subject: [PATCH] updated: gh actions run steps, default netwokr to localhost --- .github/workflows/ci.yml | 8 ++++---- README.md | 4 ++-- hardhat.config.ts | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d91b6a4..04e555a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,16 +31,16 @@ jobs: run: npm install - name: "Copy .env.example to .env" run: cp .env.example .env - - name: "Start hardhat node" - run: npx hardhat node & sleep 3 - - name: "List accounts with balances" - run: npx hardhat accounts - name: "Check for solidity linter errors" run: npx hardhat check - name: "Compile contracts" run: npm run compile - name: "Check solidity coverage" run: npm run coverage + - name: "Start hardhat node" + run: npx hardhat node & sleep 5 + - name: "List accounts with balances" + run: npx hardhat accounts - name: "Run tests" run: npm run test - name: "Deploy contracts" diff --git a/README.md b/README.md index dc487a6..b89f7db 100644 --- a/README.md +++ b/README.md @@ -24,10 +24,10 @@ npx hardhat balance --account '0x47a9...' npx hardhat compile # deploy contract defined in tasks on specified network -npx hardhat deploy --network local +npx hardhat deploy --network localhost # deploy contract in scripts/deploy.ts on specified network -npx hardhat run scripts/deploy.ts --network local +npx hardhat run scripts/deploy.ts --network localhost #check linter issues using solhint plugin npx hardhat check diff --git a/hardhat.config.ts b/hardhat.config.ts index 69ba12a..f3092dc 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -43,12 +43,12 @@ task("balance", "Prints an account's balance") }); const config: HardhatUserConfig = { - defaultNetwork: "local", + defaultNetwork: "localhost", networks: { hardhat: { chainId: 1337 }, - local: { + localhost: { url: "http://127.0.0.1:8545" }, mumbai: {