Skip to content

Commit

Permalink
fix ibc tests
Browse files Browse the repository at this point in the history
  • Loading branch information
atheeshp committed Feb 29, 2024
1 parent 5af7694 commit 1d98d31
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions tests/ibc-defi/cheqd/cheqd-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions tests/ibc-defi/ibc-transfer-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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" # ---
Expand Down
1 change: 1 addition & 0 deletions tests/ibc-defi/osmosis/osmosis-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 1d98d31

Please sign in to comment.