From 1d98d313f94b56df983f5d4b6d812dfdec66f6e3 Mon Sep 17 00:00:00 2001 From: atheesh Date: Thu, 29 Feb 2024 14:56:16 +0530 Subject: [PATCH] fix ibc tests --- tests/ibc-defi/cheqd/cheqd-init.sh | 1 + tests/ibc-defi/ibc-transfer-test.sh | 4 ++-- tests/ibc-defi/osmosis/osmosis-init.sh | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/ibc-defi/cheqd/cheqd-init.sh b/tests/ibc-defi/cheqd/cheqd-init.sh index d44e834ba..fb669e38f 100755 --- a/tests/ibc-defi/cheqd/cheqd-init.sh +++ b/tests/ibc-defi/cheqd/cheqd-init.sh @@ -24,6 +24,7 @@ sed -i $SED_EXT 's|minimum-gas-prices = ""|minimum-gas-prices = "50ncheq"|g' "$H # shellcheck disable=SC2086 sed -i $SED_EXT 's|laddr = "tcp://127.0.0.1:26657"|laddr = "tcp://0.0.0.0:26657"|g' "$HOME/.cheqdnode/config/config.toml" +sed -i $SED_EXT 's|address = "localhost:9090"|address = "0.0.0.0:9090"|g' "$HOME/.cheqdnode/config/app.toml" # Genesis GENESIS="$HOME/.cheqdnode/config/genesis.json" diff --git a/tests/ibc-defi/ibc-transfer-test.sh b/tests/ibc-defi/ibc-transfer-test.sh index 6c5c57fb0..98799c477 100755 --- a/tests/ibc-defi/ibc-transfer-test.sh +++ b/tests/ibc-defi/ibc-transfer-test.sh @@ -118,7 +118,7 @@ docker compose exec hermes hermes keys add --chain osmosis --mnemonic-file osmo_ # docker compose exec hermes keys list --chain osmosis info "Open channel" # --- -docker compose exec hermes hermes create channel --a-chain cheqd --b-chain osmosis --a-port transfer --b-port transfer --new-client-connection +docker compose exec hermes hermes create channel --a-chain cheqd --b-chain osmosis --a-port transfer --b-port transfer --new-client-connection --yes info "Start hermes" # --- docker compose exec -d hermes hermes start @@ -149,7 +149,7 @@ docker compose exec osmosis osmosisd query ibc-transfer denom-trace "$DENOM_CUT" info "Transfer osmosis -> cheqd" # --- PORT="transfer" CHANNEL="channel-0" -docker compose exec osmosis osmosisd tx ibc-transfer transfer $PORT $CHANNEL "$CHEQD_USER_ADDRESS" 10000000000"${DENOM}" --from osmosis-user --chain-id osmosis --keyring-backend test -y +docker compose exec osmosis osmosisd tx ibc-transfer transfer $PORT $CHANNEL "$CHEQD_USER_ADDRESS" 10000000000"${DENOM}" --from osmosis-user --chain-id osmosis --fees 500uosmo --keyring-backend test -y sleep 30 # Wait for relayer info "Get balances" # --- diff --git a/tests/ibc-defi/osmosis/osmosis-init.sh b/tests/ibc-defi/osmosis/osmosis-init.sh index df33f8f42..e8d2bc1eb 100644 --- a/tests/ibc-defi/osmosis/osmosis-init.sh +++ b/tests/ibc-defi/osmosis/osmosis-init.sh @@ -20,6 +20,7 @@ osmosisd init --chain-id "$CHAIN_ID" testing # Config sed -i $SED_EXT 's/"stake"/"uosmo"/' "$HOME/.osmosisd/config/genesis.json" sed -i $SED_EXT 's|laddr = "tcp://127.0.0.1:26657"|laddr = "tcp://0.0.0.0:26657"|g' "$HOME/.osmosisd/config/config.toml" +sed -i $SED_EXT 's|address = "localhost:9090"|address = "0.0.0.0:9090"|g' "$HOME/.osmosisd/config/app.toml" osmosisd keys add osmosis-user --keyring-backend=test