chore(scripts): comment fixes for inventory persistence paths

Made-with: Cursor
This commit is contained in:
defiQUG
2026-03-27 22:11:50 -07:00
parent a2beda3db4
commit d0f6044b9b
5 changed files with 8 additions and 8 deletions

View File

@@ -250,7 +250,7 @@ if [ -n "$NEW_LINK" ] && [ ${#NEW_LINK} -eq 42 ]; then
echo "✓✓✓ LINK deployed: $NEW_LINK" echo "✓✓✓ LINK deployed: $NEW_LINK"
echo "$NEW_LINK" > /tmp/link_address.txt echo "$NEW_LINK" > /tmp/link_address.txt
# Update .env # Update address inventory
cd "$PROJECT_ROOT" cd "$PROJECT_ROOT"
persist_inventory_value "LINK_TOKEN" "$NEW_LINK" || true persist_inventory_value "LINK_TOKEN" "$NEW_LINK" || true
persist_inventory_value "CCIP_CHAIN138_FEE_TOKEN" "$NEW_LINK" || true persist_inventory_value "CCIP_CHAIN138_FEE_TOKEN" "$NEW_LINK" || true

View File

@@ -60,14 +60,14 @@ if [ -n "$PRIVATE_KEY_OR_ADDRESS" ]; then
elif [ -n "${PRIVATE_KEY:-}" ]; then elif [ -n "${PRIVATE_KEY:-}" ]; then
DEPLOYER=$(cast wallet address --private-key "$PRIVATE_KEY" 2>/dev/null || echo "") DEPLOYER=$(cast wallet address --private-key "$PRIVATE_KEY" 2>/dev/null || echo "")
if [ -z "$DEPLOYER" ]; then if [ -z "$DEPLOYER" ]; then
log_error "Failed to get address from PRIVATE_KEY in .env" log_error "Failed to get address from PRIVATE_KEY in effective environment"
exit 1 exit 1
fi fi
log_info "Using address from PRIVATE_KEY in .env: $DEPLOYER" log_info "Using address from effective PRIVATE_KEY: $DEPLOYER"
else else
log_error "No address or private key provided" log_error "No address or private key provided"
log_info "Usage: $0 [amount_in_eth] [private_key_or_address]" log_info "Usage: $0 [amount_in_eth] [private_key_or_address]"
log_info "Or set PRIVATE_KEY in .env file" log_info "Or export PRIVATE_KEY before running"
exit 1 exit 1
fi fi

View File

@@ -35,7 +35,7 @@ TEST_AMOUNTS=("${@:-0.001}")
if [ -z "$PRIVATE_KEY" ]; then if [ -z "$PRIVATE_KEY" ]; then
log_error "PRIVATE_KEY not provided. Usage: $0 [private_key] [test_amounts...]" log_error "PRIVATE_KEY not provided. Usage: $0 [private_key] [test_amounts...]"
log_info "Or set PRIVATE_KEY in .env file" log_info "Or export PRIVATE_KEY before running"
exit 1 exit 1
fi fi

View File

@@ -33,7 +33,7 @@ TEST_AMOUNT="${2:-0.001}"
if [ -z "$PRIVATE_KEY" ]; then if [ -z "$PRIVATE_KEY" ]; then
log_error "PRIVATE_KEY not provided. Usage: $0 [private_key] [test_amount]" log_error "PRIVATE_KEY not provided. Usage: $0 [private_key] [test_amount]"
log_info "Or set PRIVATE_KEY in .env file" log_info "Or export PRIVATE_KEY before running"
exit 1 exit 1
fi fi

View File

@@ -2,7 +2,7 @@
# Wrap ETH to WETH9 and bridge to Ethereum Mainnet # Wrap ETH to WETH9 and bridge to Ethereum Mainnet
# Usage: ./wrap-and-bridge-to-ethereum.sh [amount_in_eth] [private_key] # Usage: ./wrap-and-bridge-to-ethereum.sh [amount_in_eth] [private_key]
# Example: ./wrap-and-bridge-to-ethereum.sh 1.0 0x... # Example: ./wrap-and-bridge-to-ethereum.sh 1.0 0x...
# Or set PRIVATE_KEY in .env file: ./wrap-and-bridge-to-ethereum.sh 1.0 # Or export PRIVATE_KEY first: ./wrap-and-bridge-to-ethereum.sh 1.0
set -euo pipefail set -euo pipefail
@@ -39,7 +39,7 @@ if [ -n "$PRIVATE_KEY_ARG" ]; then
PRIVATE_KEY="$PRIVATE_KEY_ARG" PRIVATE_KEY="$PRIVATE_KEY_ARG"
elif [ -z "${PRIVATE_KEY:-}" ]; then elif [ -z "${PRIVATE_KEY:-}" ]; then
log_error "PRIVATE_KEY not provided. Usage: $0 <amount_in_eth> [private_key]" log_error "PRIVATE_KEY not provided. Usage: $0 <amount_in_eth> [private_key]"
log_info "Or set PRIVATE_KEY in .env file" log_info "Or export PRIVATE_KEY before running"
exit 1 exit 1
fi fi