Standardize deployment env and deployer handling

This commit is contained in:
defiQUG
2026-04-22 14:47:28 -07:00
parent 768168de5e
commit c3d4c786fa
51 changed files with 424 additions and 621 deletions

View File

@@ -26,15 +26,11 @@ fi
# Get deployer address
if [ -z "${PRIVATE_KEY:-}" ]; then
echo "Error: PRIVATE_KEY not set in .env"
DEPLOYER="$(require_deployer_address || true)"
if [[ -z "$DEPLOYER" ]]; then
exit 1
fi
PRIVATE_KEY_FIXED="${PRIVATE_KEY}"
[[ "$PRIVATE_KEY_FIXED" != 0x* ]] && PRIVATE_KEY_FIXED="0x${PRIVATE_KEY_FIXED}"
DEPLOYER=$(cast wallet address "$PRIVATE_KEY_FIXED" 2>/dev/null | head -1)
echo "=========================================="
echo "Contract Ownership Verification"
echo "=========================================="
@@ -185,4 +181,3 @@ fi
echo "=========================================="
echo "Ownership Verification Complete"
echo "=========================================="