From 1ccd1eb016f35b276f70a7e694ddca34c510493a Mon Sep 17 00:00:00 2001 From: yuetloo Date: Fri, 2 Feb 2024 21:21:28 -0500 Subject: [PATCH] update cancel job --- .github/workflows/cancel-round.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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}