From d35dd60ab8d37ab2d311e76a0546dcf33c864da1 Mon Sep 17 00:00:00 2001 From: ali ebrahimi Date: Mon, 21 Oct 2024 17:06:56 +0330 Subject: [PATCH] make env compatible with polygon zkEVM --- src/scripts/runFundingPotService.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/scripts/runFundingPotService.ts b/src/scripts/runFundingPotService.ts index ecf8b70e8..ab8961099 100644 --- a/src/scripts/runFundingPotService.ts +++ b/src/scripts/runFundingPotService.ts @@ -198,7 +198,16 @@ async function createEnvFile() { .replace( 'ANKR_API_KEY=""', `ANKR_API_KEY="${config.get('ANKR_API_KEY_FOR_FUNDING_POT') || ''}"`, - ); + ) + .replace( + 'ANKR_NETWORK_ID="base_sepolia"', + 'ANKR_NETWORK_ID=polygon_zkevm', + ) + .replace( + 'RPC_URL="https://rpc.ankr.com/base_sepolia"', + 'RPC_URL="https://zkevm-rpc.com"', + ) + .replace('CHAIN_ID=84532', 'CHAIN_ID=1101'); await fs.writeFile(envFilePath, updatedEnvContent, 'utf-8'); } catch (error) {