-
Notifications
You must be signed in to change notification settings - Fork 14
/
hardhat.config.ts
35 lines (28 loc) · 1022 Bytes
/
hardhat.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
import * as dotenv from 'dotenv';
dotenv.config();
// Go to https://infura.io, sign up, create a new API key
// in its dashboard, and replace "KEY" with it
const INFURA_API_KEY: string | undefined = process.env.INFURA_API_KEY;
// Replace this private key with your Sepolia account private key
// To export your private key from Metamask, open Metamask and
// go to Account Details > Export Private Key
// Beware: NEVER put real Ether into testing accounts
const SEPOLIA_PRIVATE_KEY: string| undefined = process.env.WALLET_PRIVATE_KEY;
const config: HardhatUserConfig = {
solidity: "0.8.18",
networks: {
hardhat: {
allowUnlimitedContractSize: true
},
localhost: {
allowUnlimitedContractSize: true
},
// sepolia: {
// url: `https://sepolia.infura.io/v3/${INFURA_API_KEY}`,
// accounts: [SEPOLIA_PRIVATE_KEY? SEPOLIA_PRIVATE_KEY : ""]
// }
},
};
export default config;