Skip to content

Commit

Permalink
check localnet
Browse files Browse the repository at this point in the history
  • Loading branch information
fadeev committed Nov 8, 2024
1 parent 4ec97a0 commit dc9aaa3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/router/scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit dc9aaa3

Please sign in to comment.