Skip to content

Commit

Permalink
fix: update the key (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
lesterli authored Nov 1, 2024
1 parent 12a4f09 commit 1b34d77
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion scripts/babylon-integration/start-btc-staker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ set +a
EXAMPLE_BTC_STAKER_CONF=$(pwd)/configs/babylon-integration/stakerd.conf
BTC_STAKER_DIR=$(pwd)/.btc-staker
BTC_STAKER_CONF=$(pwd)/.btc-staker/stakerd.conf
PREFUNDED_KEYRING_DIR=$(pwd)/.deploy
PREFUNDED_KEYRING_DIR=$(pwd)/.deploy/babylond

# Only run if the directory does not exist
if [ ! -d "$BTC_STAKER_DIR" ]; then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ set +a
EXAMPLE_FINALITY_PROVIDER_CONF=$(pwd)/configs/babylon-integration/consumer-fpd.conf
CONSUMER_FINALITY_PROVIDER_DIR=$(pwd)/.consumer-finality-provider
FINALITY_PROVIDER_CONF=$(pwd)/.consumer-finality-provider/fpd.conf
CONSUMER_FP_KEYRING_DIR=$(pwd)/.deploy/$CONSUMER_FINALITY_PROVIDER_KEY
CONSUMER_FP_KEYRING_DIR=$(pwd)/.deploy/babylond/$CONSUMER_FINALITY_PROVIDER_KEY

if [ ! -d "$CONSUMER_FINALITY_PROVIDER_DIR" ]; then
echo "Creating $CONSUMER_FINALITY_PROVIDER_DIR directory..."
Expand Down
9 changes: 7 additions & 2 deletions scripts/babylon-integration/utils/deploy-cw-contract.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,13 @@ else
fi

echo "Instantiating contract..."
# Set the contract admin address default to $DEPLOYER_ADDRESS if it is not passed in from the ENV file
CONTRACT_ADMIN_ADDRESS=${CONTRACT_ADMIN_ADDRESS:-$DEPLOYER_ADDRESS}
PREFUNDED_ADDRESS=$(babylond keys show $BABYLON_PREFUNDED_KEY \
--keyring-dir $KEYRING_DIR \
--keyring-backend test \
--output json \
| jq -r '.address')
# Set the contract admin address default to $PREFUNDED_ADDRESS if it is not passed in from the ENV file
CONTRACT_ADMIN_ADDRESS=${CONTRACT_ADMIN_ADDRESS:-$PREFUNDED_ADDRESS}
echo "Contract admin address: $CONTRACT_ADMIN_ADDRESS"

INSTANTIATE_MSG_JSON=$(printf '{"admin":"%s","consumer_id":"%s","is_enabled":%s}' \
Expand Down

0 comments on commit 1b34d77

Please sign in to comment.