From d0f6044b9bd87801273cb56213a280712ae9177d Mon Sep 17 00:00:00 2001 From: defiQUG Date: Fri, 27 Mar 2026 22:11:50 -0700 Subject: [PATCH] chore(scripts): comment fixes for inventory persistence paths Made-with: Cursor --- scripts/diagnose-link-deployment.sh | 2 +- scripts/dry-run-bridge-to-ethereum.sh | 6 +++--- scripts/test-weth9-deposit.sh | 2 +- scripts/verify-weth9-ratio.sh | 2 +- scripts/wrap-and-bridge-to-ethereum.sh | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/scripts/diagnose-link-deployment.sh b/scripts/diagnose-link-deployment.sh index 804a485..691dbf7 100755 --- a/scripts/diagnose-link-deployment.sh +++ b/scripts/diagnose-link-deployment.sh @@ -250,7 +250,7 @@ if [ -n "$NEW_LINK" ] && [ ${#NEW_LINK} -eq 42 ]; then echo "✓✓✓ LINK deployed: $NEW_LINK" echo "$NEW_LINK" > /tmp/link_address.txt - # Update .env + # Update address inventory cd "$PROJECT_ROOT" persist_inventory_value "LINK_TOKEN" "$NEW_LINK" || true persist_inventory_value "CCIP_CHAIN138_FEE_TOKEN" "$NEW_LINK" || true diff --git a/scripts/dry-run-bridge-to-ethereum.sh b/scripts/dry-run-bridge-to-ethereum.sh index f337e83..4db7135 100755 --- a/scripts/dry-run-bridge-to-ethereum.sh +++ b/scripts/dry-run-bridge-to-ethereum.sh @@ -60,14 +60,14 @@ if [ -n "$PRIVATE_KEY_OR_ADDRESS" ]; then elif [ -n "${PRIVATE_KEY:-}" ]; then DEPLOYER=$(cast wallet address --private-key "$PRIVATE_KEY" 2>/dev/null || echo "") 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 fi - log_info "Using address from PRIVATE_KEY in .env: $DEPLOYER" + log_info "Using address from effective PRIVATE_KEY: $DEPLOYER" else log_error "No address or private key provided" 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 fi diff --git a/scripts/test-weth9-deposit.sh b/scripts/test-weth9-deposit.sh index 265556e..faae731 100755 --- a/scripts/test-weth9-deposit.sh +++ b/scripts/test-weth9-deposit.sh @@ -35,7 +35,7 @@ TEST_AMOUNTS=("${@:-0.001}") if [ -z "$PRIVATE_KEY" ]; then 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 fi diff --git a/scripts/verify-weth9-ratio.sh b/scripts/verify-weth9-ratio.sh index c6ab34c..ce1277f 100755 --- a/scripts/verify-weth9-ratio.sh +++ b/scripts/verify-weth9-ratio.sh @@ -33,7 +33,7 @@ TEST_AMOUNT="${2:-0.001}" if [ -z "$PRIVATE_KEY" ]; then 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 fi diff --git a/scripts/wrap-and-bridge-to-ethereum.sh b/scripts/wrap-and-bridge-to-ethereum.sh index 1bfae5f..cf86de8 100755 --- a/scripts/wrap-and-bridge-to-ethereum.sh +++ b/scripts/wrap-and-bridge-to-ethereum.sh @@ -2,7 +2,7 @@ # Wrap ETH to WETH9 and bridge to Ethereum Mainnet # Usage: ./wrap-and-bridge-to-ethereum.sh [amount_in_eth] [private_key] # 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 @@ -39,7 +39,7 @@ if [ -n "$PRIVATE_KEY_ARG" ]; then PRIVATE_KEY="$PRIVATE_KEY_ARG" elif [ -z "${PRIVATE_KEY:-}" ]; then log_error "PRIVATE_KEY not provided. Usage: $0 [private_key]" - log_info "Or set PRIVATE_KEY in .env file" + log_info "Or export PRIVATE_KEY before running" exit 1 fi