Skip to content

Commit

Permalink
fix missing round duration
Browse files Browse the repository at this point in the history
  • Loading branch information
yuetloo committed Mar 21, 2024
1 parent f1801f0 commit e443b8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/sh/runScriptTests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export OUTPUT_DIR="./proof_output/${NOW}"
export TALLY_FILE=${OUTPUT_DIR}/tally.json
export HARDHAT_NETWORK=localhost
export RAPID_SNARK=${RAPID_SNARK:-~/rapidsnark/package/bin/prover}
export ROUND_DURATION=1000

mkdir -p ${OUTPUT_DIR}

Expand All @@ -25,12 +26,11 @@ export COORDINATOR_MACISK=$(echo "${MACI_KEYPAIR}" | grep -o "macisk.*$")
yarn hardhat new-clrfund --network ${HARDHAT_NETWORK}

# deploy a new funding round
yarn hardhat new-round --network ${HARDHAT_NETWORK}
yarn hardhat new-round --round-duration ${ROUND_DURATION} --network ${HARDHAT_NETWORK}

yarn hardhat add-recipients --network ${HARDHAT_NETWORK}
yarn hardhat contribute --network ${HARDHAT_NETWORK}

ROUND_DURATION=$(node -e 'const config=JSON.parse(fs.readFileSync(`./deploy-config.json`).toString()); console.log(config.localhost?.FundingRound?.duration || 1000)')
yarn hardhat time-travel --seconds ${ROUND_DURATION} --network ${HARDHAT_NETWORK}

# run the tally script
Expand Down

0 comments on commit e443b8d

Please sign in to comment.