From 6642dc291901d7afe3f02b6e3ab67412bb3c3189 Mon Sep 17 00:00:00 2001 From: Yorick Downe Date: Tue, 7 Nov 2023 12:09:01 +0000 Subject: [PATCH] Remove optimism holdovers --- ethd | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/ethd b/ethd index 67e1b40..5840e96 100755 --- a/ethd +++ b/ethd @@ -430,17 +430,7 @@ envmigrate() { __adjust_NETWORK="" for var in "${ALL_VARS[@]}"; do value=$(sed -n -e "s/^${var}=\(.*\)/\1/p" "${ENV_FILE}.source" || true) - if [ -n "${value}" ] || [ "${var}" = "EXTRA_STATIC_NODES" ] || [ "${var}" = "SNAPSHOT" ]; then - # For goerli and mainnet, we mean op-goerli and op-mainnet - if [[ "${var}" = "NETWORK" && ( "${value}" = "goerli" || "${value}" = "mainnet" ) ]]; then - __adjust_NETWORK="${value}" - value="op-${value}" - fi - # Coming from the original Optimism Docker, replace ${NETWORK} in strings with goerli or mainnet - if [[ -n "${__adjust_NETWORK}" && ( "${var}" = "SNAPSHOT" || "${var}" = "SEQUENCER" - || "${var}" = "LEGACY_TAR" ) ]]; then - value="${value//\$\{NETWORK\}/${__adjust_NETWORK}}" - fi + if [ -n "${value}" ] || [ "${var}" = "SNAPSHOT" ]; then sed -i'.original' -e "s~^\(${var}\s*=\s*\).*$~\1${value}~" "${ENV_FILE}" fi done