You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Replaces RPC URLs with placeholders and removes dev section
5
6
# Usage: sanitize-config.sh <config_file>
6
7
7
8
CONFIG_FILE="$1"
@@ -18,17 +19,13 @@ fi
18
19
19
20
echo"Sanitizing config file: $CONFIG_FILE"
20
21
21
-
# Replace URLs with TODO placeholders (only on non-commented lines; preserve indent)
22
-
sed -i.bak -E '/^[[:space:]]*#/! s|^([[:space:]]*)zksyncurl:[[:space:]]*".*"|\1zksyncurl: "TODO: Set your GenLayer Chain ZKSync HTTP RPC URL here"|'"$CONFIG_FILE"
23
-
sed -i.bak -E '/^[[:space:]]*#/! s|^([[:space:]]*)zksyncwebsocketurl:[[:space:]]*".*"|\1zksyncwebsocketurl: "TODO: Set your GenLayer Chain ZKSync WebSocket RPC URL here"|'"$CONFIG_FILE"
24
-
rm -f "${CONFIG_FILE}.bak"
22
+
# Use yq to:
23
+
# 1. Replace RPC URLs with TODO placeholders
24
+
# 2. Delete node.dev section
25
+
yq -i '
26
+
.rollup.genlayerchainrpcurl = "TODO: Set your GenLayer Chain ZKSync HTTP RPC URL here" |
27
+
.rollup.genlayerchainwebsocketurl = "TODO: Set your GenLayer Chain ZKSync WebSocket RPC URL here" |
0 commit comments