diff --git a/scripts/initialChecks.js b/scripts/initialChecks.js index 12f0b29..0f9940d 100644 --- a/scripts/initialChecks.js +++ b/scripts/initialChecks.js @@ -10,7 +10,7 @@ async function initialChecks() { const { ERC20_TOKEN_ADDRESS, BRIDGE_MODE, FOREIGN_RPC_URL, FOREIGN_BRIDGE_ADDRESS } = process.env const result = {} - if (BRIDGE_MODE === 'ERC_TO_ERC' && process.argv[2].includes('affirmation-request-watcher')) { + if (BRIDGE_MODE === 'ERC_TO_ERC') { const foreignWeb3 = new Web3(new Web3.providers.HttpProvider(FOREIGN_RPC_URL)) const tokenContract = new foreignWeb3.eth.Contract(ERC677BridgeTokenABI, ERC20_TOKEN_ADDRESS) try { diff --git a/scripts/start-worker.sh b/scripts/start-worker.sh index e705a07..374e040 100755 --- a/scripts/start-worker.sh +++ b/scripts/start-worker.sh @@ -9,7 +9,7 @@ WORKER="${WORKERS_DIR}${1}.js" CONFIG="${2}.config.js" LOG="${LOGS_DIR}${2}.txt" -CHECKS=$(node scripts/initialChecks.js "${CONFIG}") +CHECKS=$(node scripts/initialChecks.js) if [ "${NODE_ENV}" = "production" ]; then exec node "${WORKER}" "${CONFIG}" "$CHECKS"