diff --git a/examples/router/scripts/test.sh b/examples/router/scripts/test.sh index 32e236e1..00cdcf61 100755 --- a/examples/router/scripts/test.sh +++ b/examples/router/scripts/test.sh @@ -36,9 +36,11 @@ npx hardhat connected-set-router --network localhost --contract "$CONTRACT_BNB" echo -e "\nMaking an authenticated call..." npx hardhat transfer --network localhost --json --from "$CONTRACT_ETHEREUM" --to "$ZRC20_BNB" --gas-amount 1 --call-on-revert --revert-address "$CONTRACT_ETHEREUM" --revert-message "hello" --types '["string"]' alice -sleep 5 +npx hardhat localnet-check echo -e "\nMaking an arbitrary call..." npx hardhat transfer --network localhost --json --from "$CONTRACT_ETHEREUM" --to "$ZRC20_BNB" --gas-amount 1 --call-options-is-arbitrary-call --function "hello(string)" --revert-address "$CONTRACT_ETHEREUM" --revert-message "hello" --types '["string"]' alice +npx hardhat localnet-check + if [ "$1" = "localnet" ]; then npx hardhat localnet-stop; fi \ No newline at end of file