Skip to content

Commit

Permalink
fix(scripts): compile contracts before start dev and run on hardhat n…
Browse files Browse the repository at this point in the history
…etwork
  • Loading branch information
AugustoL committed May 4, 2022
1 parent 60c1e5f commit 8eb714d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ hardhat_running() {

start-hardhat_node() {

yarn hardhat compile

npx hardhat node > /dev/null &

# Account #0: 0x79706c8e413cdaee9e63f282507287b9ea9c0928 (10000 ETH)
Expand Down Expand Up @@ -113,7 +115,7 @@ echo "${contents}" > tsconfig.json
node scripts/beforeBuild.js

# Deploy local contracts
yarn hardhat run --network localhost scripts/dev.ts
yarn hardhat run scripts/dev.ts

# Enable isolatedModules and use esnext as module in tsconfig
contents="$(jq '.compilerOptions.isolatedModules = true' tsconfig.json)" && \
Expand Down

0 comments on commit 8eb714d

Please sign in to comment.