From 2c915d20414eee98adf0de9f37d0ef75650fa766 Mon Sep 17 00:00:00 2001 From: Akash Date: Tue, 17 Oct 2023 23:17:50 +0530 Subject: [PATCH] fix: counter script --- .gitignore | 4 ++++ scripts/deploy/connect.ts | 5 +---- scripts/deploy/scripts/switchboardData.ts | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 5ed9f92f..4693c156 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,7 @@ scripts/deploy/gasEstimate.ts # coverage lcov.info + +dev_switchboards.json +prod_switchboards.json +switchboards.json \ No newline at end of file diff --git a/scripts/deploy/connect.ts b/scripts/deploy/connect.ts index 24f128af..ffdb0ca5 100644 --- a/scripts/deploy/connect.ts +++ b/scripts/deploy/connect.ts @@ -46,10 +46,7 @@ export const main = async () => { const siblingIntegrationtype: IntegrationTypes[] = siblingSlugs.map( (chainSlug) => { - return getDefaultIntegrationType( - ChainSlugToKey[chain], - ChainSlugToKey[chainSlug] - ); + return getDefaultIntegrationType(chain, chainSlug); } ); diff --git a/scripts/deploy/scripts/switchboardData.ts b/scripts/deploy/scripts/switchboardData.ts index 8e5965d2..38f595c8 100644 --- a/scripts/deploy/scripts/switchboardData.ts +++ b/scripts/deploy/scripts/switchboardData.ts @@ -100,7 +100,7 @@ export const getSwitchboardData = async () => { ); console.log("total switchboards: ", switchboards.length); fs.writeFileSync( - "./switchboards.json", + `./${mode}_switchboards.json`, JSON.stringify(switchboards, null, 2) ); };