Skip to content

Commit

Permalink
working on hardhat config
Browse files Browse the repository at this point in the history
  • Loading branch information
scryptoginger committed Jul 13, 2024
1 parent 4a97ef3 commit 5361ec2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/hardhat/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ dotenv.config();
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-verify";
import "@nomicfoundation/hardhat-ethers";
// import "@nomicfoundation/hardhat-ignition-ethers";
import "@nomicfoundation/hardhat-chai-matchers";
import "@typechain/hardhat";
import "hardhat-gas-reporter";
Expand All @@ -14,7 +13,7 @@ import "hardhat-deploy";
import "hardhat-deploy-ethers";

const privateKey = process.env.PRIVATE_KEY || "";
const alchemyApiKey = process.env.ALCHEMY_API_KEY || "";
const alchemyApiKey = process.env.ALCHEMY_API_KEY || "oKxs-03sij-U_N0iOlrSsZFr29-IqbuF"; //default, publicly known key from Scaffold-eth
const polygonScanApiKey = process.env.POLYGONSCAN_API_KEY || "";

const config: HardhatUserConfig = {
Expand Down Expand Up @@ -45,8 +44,9 @@ const config: HardhatUserConfig = {
polygonAmoy: {
url: `https://polygon-amoy.g.alchemy.com/v2/${process.env.ALCHEMY_API_KEY}`,
// url: `https://rpc-amoy.polygon.technology/`,
accounts: [privateKey as string],
// accounts: [alchemyApiKey as string],
accounts: [privateKey],
// accounts: [${process.env.PRIVATE_KEY}],
// accounts: [alchemyApiKey], //account: [${process.env.privateKey}]
// accounts: [polygonScanApiKey as string],
gasPrice: "auto",
},
Expand Down

0 comments on commit 5361ec2

Please sign in to comment.