Skip to content

Commit

Permalink
fix: dont migrate new contracts if we already have them deployed
Browse files Browse the repository at this point in the history
  • Loading branch information
Westlad committed Feb 8, 2022
1 parent 02df376 commit 47e242d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nightfall-deployer/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion nightfall-deployer/src/circuit-setup.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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}`,
Expand Down

0 comments on commit 47e242d

Please sign in to comment.