Skip to content

Commit caf38cf

Browse files
committed
tests: use hardhat for the gas reporter, this is much faster
1 parent 5604476 commit caf38cf

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

scripts/test

+3-8
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ evm_running() {
1313

1414
evm_start() {
1515
echo "Starting our own evm instance at port $TESTRPC_PORT"
16-
npx ganache-cli -m "$MNEMONIC" -i 1337 --gasLimit 8000000 --port "$TESTRPC_PORT" > /dev/null &
16+
npx hardhat node --port "$TESTRPC_PORT" > /dev/null &
1717
}
1818

1919
evm_kill() {
@@ -40,13 +40,8 @@ fi
4040

4141
mkdir -p reports
4242

43-
if [ "$RUN_EVM" = true ]; then
44-
# Run using the standalone evm instance
45-
npx hardhat test --network ganache
46-
else
47-
# Run using the default evm
48-
npx hardhat test "$@"
49-
fi
43+
# Run using the standalone evm instance
44+
npx hardhat test --network hardhat
5045

5146
### Cleanup
5247

0 commit comments

Comments
 (0)