Skip to content

Commit

Permalink
chore: change hardhat conf
Browse files Browse the repository at this point in the history
  • Loading branch information
0xKurt committed Oct 30, 2023
1 parent ef1c2e1 commit d02005b
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,10 @@ dotenv.config();

const deployPrivateKey = (process.env.DEPLOYER_PRIVATE_KEY as string) || "";

const config: HardhatUserConfig = {
solidity: {
version: "0.8.20",
settings: {
optimizer: {
enabled: true,
runs: 400,
},
},
},
networks: {
let networks = {};

if (deployPrivateKey !== "") {
networks = {
goerli: {
accounts: [deployPrivateKey],
chainId: 5,
Expand Down Expand Up @@ -77,7 +70,20 @@ const config: HardhatUserConfig = {
chainId: 250,
url: "https://rpc.fantom.network",
},
};
}

const config: HardhatUserConfig = {
solidity: {
version: "0.8.20",
settings: {
optimizer: {
enabled: true,
runs: 400,
},
},
},
networks,
etherscan: {
apiKey: {
goerli: process.env.ETHERSCAN_API_KEY || "",
Expand Down

0 comments on commit d02005b

Please sign in to comment.