diff --git a/.github/workflows/cancel-round.yml b/.github/workflows/cancel-round.yml index 8f17f17c9..ba4967b48 100644 --- a/.github/workflows/cancel-round.yml +++ b/.github/workflows/cancel-round.yml @@ -4,8 +4,9 @@ on: workflow_dispatch env: NODE_VERSION: 18.x - SUBGRPAH_URL: "https://api.thegraph.com/subgraphs/name/clrfund/clrfund-arbitrum-goerli" + SUBGRPAH_URL: "https://api.thegraph.com/subgraphs/name/clrfund/clrfund-testnet" WALLET_PRIVATE_KEY: ${{ secrets.ARBITRUM_GOERLI_COORDINATOR_WALLET_PRIVATE_KEY }} + NETWORK: "arbitrum-sepolia" jobs: cancel-round: @@ -25,6 +26,6 @@ jobs: - name: Run the cancel round script run: | cd contracts - export FACTORY=$(curl -X POST -d '{"query":"{fundingRoundFactories {id}}"}' $SUBGRPAH_URL) - export FACTORY_ADDRESS=$(node -e 'console.log(JSON.parse(process.env.FACTORY).data.fundingRoundFactories[0].id)') - yarn hardhat cancel-round --factory ${FACTORY_ADDRESS} --network arbitrum-goerli + export CLRFUND=$(curl -X POST -d '{"query":"{clrFunds {id}}"}' $SUBGRPAH_URL) + export CLRFUND_ADDRESS=$(node -e 'console.log(JSON.parse(process.env.CLRFUND).data.clrfunds[0].id)') + yarn hardhat clr-cancel --clrfund ${CLRFUND_ADDRESS} --network ${NETWORK}