Skip to content

Commit

Permalink
make env compatible with polygon zkEVM
Browse files Browse the repository at this point in the history
  • Loading branch information
ae2079 committed Oct 21, 2024
1 parent 3044e66 commit d35dd60
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/scripts/runFundingPotService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d35dd60

Please sign in to comment.