From d439457b3ebc24ea27bd6297dc8f8927408cae12 Mon Sep 17 00:00:00 2001 From: Yash Goyal Date: Thu, 7 Dec 2023 18:06:38 +0530 Subject: [PATCH] added the config for polygon mainnet --- .env.template | 1 + .github/workflows/hardhat-tests.yml | 1 + hardhat.config.ts | 4 ++++ 3 files changed, 6 insertions(+) diff --git a/.env.template b/.env.template index 2a4e082..1782b2c 100644 --- a/.env.template +++ b/.env.template @@ -1,3 +1,4 @@ PRIVATE_KEY= POLYGON_MUMBAI_RPC= PINATA_API_KEY= +POLYGON_MAINNET_RPC= diff --git a/.github/workflows/hardhat-tests.yml b/.github/workflows/hardhat-tests.yml index 8823ab7..2a91bda 100644 --- a/.github/workflows/hardhat-tests.yml +++ b/.github/workflows/hardhat-tests.yml @@ -12,6 +12,7 @@ jobs: PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} PINATA_API_KEY: ${{ secrets.PINATA_API_KEY }} POLYGON_MUMBAI_RPC: ${{ secrets.POLYGON_MUMBAI_RPC }} + POLYGON_MAINNET_RPC: ${{ secrets.POLYGON_MUMBAI_RPC }} steps: - uses: actions/checkout@v2 diff --git a/hardhat.config.ts b/hardhat.config.ts index 4e8746b..641ac67 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -11,6 +11,10 @@ const config: HardhatUserConfig = { url: process.env.POLYGON_MUMBAI_RPC, accounts: [process.env.PRIVATE_KEY || ""], }, + polygonMainnet: { + url: process.env.POLYGON_MAINNET_RPC, + accounts: [process.env.PRIVATE_KEY || ""], + }, }, };