Skip to content

Commit

Permalink
updated: gh actions run steps, default netwokr to localhost
Browse files Browse the repository at this point in the history
  • Loading branch information
Salmandabbakuti committed Nov 24, 2023
1 parent 816bdd9 commit 00921f9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 00921f9

Please sign in to comment.