From 47e242d5be905cef9ae08a35a1e1d7344ed3b94d Mon Sep 17 00:00:00 2001 From: Westlad Date: Tue, 8 Feb 2022 13:34:13 +0000 Subject: [PATCH] fix: dont migrate new contracts if we already have them deployed --- nightfall-deployer/entrypoint.sh | 2 +- nightfall-deployer/src/circuit-setup.mjs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nightfall-deployer/entrypoint.sh b/nightfall-deployer/entrypoint.sh index ef88a8c88..5eeb45dee 100755 --- a/nightfall-deployer/entrypoint.sh +++ b/nightfall-deployer/entrypoint.sh @@ -7,7 +7,7 @@ if [ -z "${USE_INFURA}" ] && [ -z "${ETH_PRIVATE_KEY}" ]; then while ! nc -z ${BLOCKCHAIN_WS_HOST} ${BLOCKCHAIN_PORT}; do sleep 3; done fi -npx truffle migrate --network=${ETH_NETWORK} --reset +npx truffle migrate --network=${ETH_NETWORK} #sleep 10 diff --git a/nightfall-deployer/src/circuit-setup.mjs b/nightfall-deployer/src/circuit-setup.mjs index fe1a7baed..f9bb59cf5 100644 --- a/nightfall-deployer/src/circuit-setup.mjs +++ b/nightfall-deployer/src/circuit-setup.mjs @@ -87,7 +87,7 @@ async function setupCircuits() { for (let i = 0; i < vks.length; i++) { const circuit = circuitsToSetup[i]; if (!vks[i] || config.ALWAYS_DO_TRUSTED_SETUP) { - // we don't have an existing vk so let's generate one (TODO in parallel) + // we don't have an existing vk so let's generate one try { logger.info( `no existing verification key. Fear not, I will make a new one: calling generate keys on ${circuit}`,