Skip to content

Commit

Permalink
chore(scripts): change broadcast-mode to sync
Browse files Browse the repository at this point in the history
  • Loading branch information
artemijspavlovs committed Jul 24, 2024
1 parent aea9aa9 commit 66516e9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions scripts/ibc/setup_ibc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ DYM_BALANCE=$("$SETTLEMENT_EXECUTABLE" q bank balances "$RLY_HUB_ADDR" -o json |
if [ "$(echo "$DYM_BALANCE >= 100000000000000000000" | bc)" -eq 1 ]; then
echo "${RLY_HUB_ADDR} already funded"
else
"$SETTLEMENT_EXECUTABLE" tx bank send "$SETTLEMENT_KEY_NAME_GENESIS" "$RLY_HUB_ADDR" 100dym --keyring-backend test --broadcast-mode block --fees 1dym --node "$SETTLEMENT_RPC_FOR_RELAYER" -y || exit 1
"$SETTLEMENT_EXECUTABLE" tx bank send "$SETTLEMENT_KEY_NAME_GENESIS" "$RLY_HUB_ADDR" 100dym --keyring-backend test --broadcast-mode sync --fees 1dym --node "$SETTLEMENT_RPC_FOR_RELAYER" -y || exit 1
fi

echo '--------------------------------- Funding rly account on rollapp ['"$RLY_ROLLAPP_ADDR"'].. --------------------------------'
Expand All @@ -123,7 +123,7 @@ RA_BALANCE=$("$EXECUTABLE" q bank balances "$RLY_ROLLAPP_ADDR" -o json | jq -r '
if [ "$(echo "$RA_BALANCE >= 100000000000000000000" | bc)" -eq 1 ]; then
echo "${RLY_ROLLAPP_ADDR} already funded"
else
"$EXECUTABLE" tx bank send "$KEY_NAME_ROLLAPP" "$RLY_ROLLAPP_ADDR" 100000000000000000000"$BASE_DENOM" --keyring-backend test --broadcast-mode block -y --fees 4000000000000"$BASE_DENOM" || exit 1
"$EXECUTABLE" tx bank send "$KEY_NAME_ROLLAPP" "$RLY_ROLLAPP_ADDR" 100000000000000000000"$BASE_DENOM" --keyring-backend test --broadcast-mode sync -y --fees 4000000000000"$BASE_DENOM" || exit 1
fi

echo '# -------------------------------- creating IBC link ------------------------------- #'
Expand Down
1 change: 0 additions & 1 deletion scripts/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -237,4 +237,3 @@ if [ ! "$answer" != "${answer#[Nn]}" ]; then
fi

"$EXECUTABLE" validate-genesis

2 changes: 1 addition & 1 deletion scripts/settlement/register_rollapp_to_hub.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ dymd tx rollapp create-rollapp "$ROLLAPP_CHAIN_ID" "$MAX_SEQUENCERS" "{\"Address
"$ROLLAPP_HOME_DIR"/init/denommetadata.json \
--genesis-accounts-path "$ROLLAPP_HOME_DIR"/init/genesis_accounts.json \
--from "$DEPLOYER" \
--keyring-backend test --broadcast-mode block \
--keyring-backend test --broadcast-mode sync \
--fees 1dym
set +x
2 changes: 1 addition & 1 deletion scripts/settlement/register_sequencer_to_hub.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ dymd tx sequencer create-sequencer "$SEQ_PUB_KEY" "$ROLLAPP_CHAIN_ID" "$DESCRIPT
--from "$KEY_NAME_SEQUENCER" \
--keyring-dir "$KEYRING_PATH" \
--keyring-backend test \
--broadcast-mode block \
--broadcast-mode sync \
--node "$HUB_RPC_URL" \
--chain-id "$HUB_CHAIN_ID" \
--fees 1dym \
Expand Down

0 comments on commit 66516e9

Please sign in to comment.