Skip to content

Commit

Permalink
added the config for polygon mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
yashgo0018 committed Dec 7, 2023
1 parent c8737eb commit d439457
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .env.template
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
PRIVATE_KEY=
POLYGON_MUMBAI_RPC=
PINATA_API_KEY=
POLYGON_MAINNET_RPC=
1 change: 1 addition & 0 deletions .github/workflows/hardhat-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 || ""],
},
},
};

Expand Down

0 comments on commit d439457

Please sign in to comment.