Skip to content

Commit a82589c

Browse files
wording fixes
1 parent 991334d commit a82589c

1 file changed

Lines changed: 28 additions & 3 deletions

File tree

β€Ždeploy-surge-full.shβ€Ž

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -884,13 +884,17 @@ update_env_var() {
884884
validate_environment_for_devnet() {
885885
log_info "Validating environment for devnet deployment..."
886886

887-
# Check if enclave already exists - if force flag, remove it; otherwise fail
887+
# Check if enclave already exists - if force flag, remove it; otherwise suggest removal
888888
if kurtosis enclave ls 2>/dev/null | grep -q "$ENCLAVE_NAME"; then
889889
if [[ "$force" == "true" ]]; then
890890
log_info "Removing existing enclave (--force specified)..."
891891
kurtosis enclave rm "$ENCLAVE_NAME" --force >/dev/null 2>&1 || true
892892
else
893-
log_error "Enclave '$ENCLAVE_NAME' already exists. Use --force to remove it."
893+
log_warning "Enclave '$ENCLAVE_NAME' exists but is not healthy."
894+
log_warning "Remove it manually and re-run the script:"
895+
echo ""
896+
echo " kurtosis enclave rm $ENCLAVE_NAME --force"
897+
echo ""
894898
return 1
895899
fi
896900
fi
@@ -1278,7 +1282,28 @@ deploy_pacaya_contracts() {
12781282
return 0
12791283
fi
12801284

1281-
log_info "Deploying Pacaya SCs... SLOW: $slow_mode"
1285+
log_info "Deploying Pacaya SCs..."
1286+
1287+
if [[ -f "$PACAYA_DEPLOYMENT_FILE" ]]; then
1288+
log_info "Pacaya smart contracts already deployed..."
1289+
echo
1290+
echo "╔══════════════════════════════════════════════════════════════╗"
1291+
echo "β•‘ Redeploy contracts? (true/false) [default: false] β•‘"
1292+
echo "β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•"
1293+
echo
1294+
read -p "Enter choice [false]: " pacaya_redeploy
1295+
pacaya_redeploy=${pacaya_redeploy:-false}
1296+
if [[ "$pacaya_redeploy" == "true" ]]; then
1297+
log_info "Starting a new deployment..."
1298+
rm -f "$DEPLOYMENT_DIR"/*.json
1299+
if command -v ./remove-surge-full.sh >/dev/null 2>&1; then
1300+
./remove-surge-full.sh
1301+
fi
1302+
else
1303+
log_info "Using existing deployment..."
1304+
return 0
1305+
fi
1306+
fi
12821307

12831308
local exit_status=0
12841309
local temp_output="/tmp/pacaya_deploy_output_$$"

0 commit comments

Comments
Β (0)