From 7c9258fa4a4939521de41425733f5a3a0d71ac84 Mon Sep 17 00:00:00 2001 From: yuetloo Date: Wed, 6 Sep 2023 01:27:54 -0400 Subject: [PATCH] add maci start block to finalize action --- .github/workflows/finalize-round.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/finalize-round.yml b/.github/workflows/finalize-round.yml index 7912871d6..6c452d3d9 100644 --- a/.github/workflows/finalize-round.yml +++ b/.github/workflows/finalize-round.yml @@ -6,11 +6,15 @@ on: branch_name: description: 'Clrfund branch name' required: true - default: 'cohort/ethSingapore' + default: 'cohort/EthSingapore' subgraph_url: description: 'Clrfund subgraph url' required: true default: 'https://graph.testnet.mantle.xyz/subgraphs/name/clrfund-ethsingapore-test' + maci_start_block: + description: 'MACI start block' + required: true + default: '0' env: NODE_VERSION: 16.x @@ -59,7 +63,7 @@ jobs: export MACI_ADDRESS=$(node -e 'console.log(JSON.parse(process.env.ROUND).data.fundingRoundFactories[0].currentRound.maci)') # tally and finalize cd contracts - yarn hardhat tally --round-address "${ROUND_ADDRESS}" --network "${NETWORK}" + yarn hardhat tally --round-address "${ROUND_ADDRESS}" --start-block "${{ github.event.inputs.maci_start_block }}" --network "${NETWORK}" curl --location --request POST 'https://api.pinata.cloud/pinning/pinFileToIPFS' \ --header "Authorization: Bearer ${{ secrets.PINATA_JWT }}" \ --form 'file=@"tally.json"'