Skip to content

Commit 3dea5d0

Browse files
authored
FIx hardhat timeouts (#552)
* fix hardhat timeout * prevent npx to self install/resolve packages
1 parent 3389d02 commit 3dea5d0

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

contracts/hardhat.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,9 @@ module.exports = {
176176
mnemonic,
177177
},
178178
},
179+
localhost: {
180+
timeout: 60000
181+
},
179182
rinkeby: {
180183
url: `${process.env.PROVIDER_URL}`,
181184
accounts: [

contracts/node.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ then
1212
params+=(--fork-block-number ${BLOCK_NUMBER})
1313
fi
1414
cp -r deployments/mainnet deployments/localhost
15-
FORK=true npx hardhat node --export '../dapp/network.json' ${params[@]}
15+
# the --no-install is here so npx doesn't download some package on its own if it can not find one in the repo
16+
FORK=true npx --no-install hardhat node --export '../dapp/network.json' ${params[@]}
1617
else
17-
npx hardhat node --export '../dapp/network.json'
18+
npx --no-install hardhat node --export '../dapp/network.json'
1819
fi

0 commit comments

Comments
 (0)