diff --git a/examples/token/scripts/test.sh b/examples/token/scripts/test.sh index 621b0c5e..d2108d7e 100755 --- a/examples/token/scripts/test.sh +++ b/examples/token/scripts/test.sh @@ -2,6 +2,10 @@ set -e +if [ "$1" = "localnet" ]; then + npx hardhat localnet --exit-on-error & sleep 10 +fi + function balance() { echo -e "\n🖼️ Balance" echo "---------------------------------------------"