Skip to content

Commit

Permalink
fix gas adjustment to 2
Browse files Browse the repository at this point in the history
  • Loading branch information
bap2pecs committed Nov 14, 2024
1 parent f30cfac commit b279321
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions scripts/babylon-integration/utils/deploy-cw-contract.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ echo "Storing contract..."
STORE_TX_HASH=$(babylond tx wasm store $CONTRACT_PATH \
--gas-prices 0.2ubbn \
--gas auto \
--gas-adjustment 1.3 \
--gas-adjustment 2 \
--from $BABYLON_PREFUNDED_KEY \
--keyring-dir $KEYRING_DIR \
--chain-id $BABYLON_CHAIN_ID \
Expand Down Expand Up @@ -72,7 +72,7 @@ echo "Instantiate message JSON: $INSTANTIATE_MSG_JSON"
DEPLOY_TX_HASH=$(babylond tx wasm instantiate $CODE "$INSTANTIATE_MSG_JSON" \
--gas-prices 0.2ubbn \
--gas auto \
--gas-adjustment 1.3 \
--gas-adjustment 2 \
--label $CONTRACT_LABEL \
--admin $CONTRACT_ADMIN_ADDRESS \
--from $BABYLON_PREFUNDED_KEY \
Expand Down
6 changes: 4 additions & 2 deletions scripts/babylon-integration/utils/set-babylon-keys.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ fi
echo

# Create new Babylon account for the consumer-finality-provider
CONSUMER_FP_KEYRING_DIR=$KEYRING_DIR/$CONSUMER_FINALITY_PROVIDER_KEY
if CONSUMER_FP_KEYRING_DIR not exist:
mkdir CONSUMER_FP_KEYRING_DIR
# CONSUMER_FP_KEYRING_DIR=$KEYRING_DIR/$CONSUMER_FINALITY_PROVIDER_KEY
if ! babylond keys show $CONSUMER_FINALITY_PROVIDER_KEY --keyring-dir $CONSUMER_FP_KEYRING_DIR --keyring-backend test &> /dev/null; then
echo "Creating keyring directory $CONSUMER_FP_KEYRING_DIR"
mkdir -p $CONSUMER_FP_KEYRING_DIR
Expand Down Expand Up @@ -56,7 +58,7 @@ FUND_TX_HASH=$(babylond tx bank send \
--keyring-dir $KEYRING_DIR \
--keyring-backend test \
--gas auto \
--gas-adjustment 1.5 \
--gas-adjustment 2 \
--gas-prices 0.2ubbn \
--output json -y \
| jq -r '.txhash')
Expand Down
2 changes: 1 addition & 1 deletion scripts/babylon-integration/utils/teardown.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ SEND_TX_OUTPUT=$(babylond tx bank send \
--chain-id $BABYLON_CHAIN_ID \
--node $BABYLON_RPC_URL \
--gas auto \
--gas-adjustment 1.5 \
--gas-adjustment 2 \
--gas-prices 0.2ubbn \
--output json -y)
echo "$SEND_TX_OUTPUT"
Expand Down
2 changes: 1 addition & 1 deletion scripts/babylon-integration/utils/toggle-cw-killswitch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ SET_ENABLED_TX_OUTPUT=$(babylond tx wasm execute $CONTRACT_ADDR \
'{"set_enabled":{"enabled":'$IS_ENABLED'}}' \
--gas-prices 0.2ubbn \
--gas auto \
--gas-adjustment 1.3 \
--gas-adjustment 2 \
--from $BABYLON_PREFUNDED_KEY \
--keyring-dir $KEYRING_DIR \
--chain-id $BABYLON_CHAIN_ID \
Expand Down

0 comments on commit b279321

Please sign in to comment.