From dc9aaa310c2cb82afbad346dd9a83c70c38c6196 Mon Sep 17 00:00:00 2001 From: Denis Fadeev Date: Fri, 8 Nov 2024 10:20:10 +0300 Subject: [PATCH] check localnet --- examples/router/scripts/test.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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