From 8eb714d6aeeee15dcf9a6f29e7fe121a1ed44c3f Mon Sep 17 00:00:00 2001 From: AugustoL Date: Wed, 4 May 2022 09:57:13 -0300 Subject: [PATCH] fix(scripts): compile contracts before start dev and run on hardhat network --- scripts/dev.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/dev.sh b/scripts/dev.sh index 081b959ad0..1255a818e5 100755 --- a/scripts/dev.sh +++ b/scripts/dev.sh @@ -20,6 +20,8 @@ hardhat_running() { start-hardhat_node() { + yarn hardhat compile + npx hardhat node > /dev/null & # Account #0: 0x79706c8e413cdaee9e63f282507287b9ea9c0928 (10000 ETH) @@ -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)" && \