From 859697f17d7a2c1943b29da2c87db85ed28855ff Mon Sep 17 00:00:00 2001 From: toyvo Date: Sun, 21 Jan 2024 18:00:43 -0500 Subject: [PATCH] ci --- .github/workflows/ci.yml | 12 ++++++------ sources/utils/constants.ts | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0589083..8141baa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,8 +15,8 @@ jobs: name: Builds the subgraph to ensure it compiles correctly runs-on: ubuntu-latest env: - NETWORK_NAME: MAINNET - START_BLOCK_NUMBER_MAINNET: 17265505 + NETWORK_NAME: mainnet + START_BLOCK_NUMBER: 17265505 steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 @@ -58,8 +58,8 @@ jobs: runs-on: ubuntu-latest if: github.ref == 'refs/heads/dev' env: - NETWORK_NAME: MAINNET - START_BLOCK_NUMBER_MAINNET: 17265505 + NETWORK_NAME: mainnet + START_BLOCK_NUMBER: 17265505 steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 @@ -104,8 +104,8 @@ jobs: runs-on: ubuntu-latest if: github.ref == 'refs/heads/main' env: - NETWORK_NAME: MAINNET - START_BLOCK_NUMBER_MAINNET: 17265505 + NETWORK_NAME: mainnet + START_BLOCK_NUMBER: 17265505 steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 diff --git a/sources/utils/constants.ts b/sources/utils/constants.ts index 4509f3f..64e6d84 100644 --- a/sources/utils/constants.ts +++ b/sources/utils/constants.ts @@ -1,5 +1,5 @@ export const networkName = process.env.NETWORK_NAME; -export const startBlockNumber = Number(process.env[`START_BLOCK_NUMBER_${process.env.NETWORK_NAME}`]); +export const startBlockNumber = Number(process.env.START_BLOCK_NUMBER); if (!(!Number.isNaN(startBlockNumber) && Number.isInteger(startBlockNumber)) && startBlockNumber > 0) { console.error('Invalid or missing start block number');