Skip to content

Commit

Permalink
fix config
Browse files Browse the repository at this point in the history
  • Loading branch information
cyri113 committed Aug 30, 2024
1 parent 70d3749 commit e41864e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
import { type HardhatUserConfig, vars } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox-viem";
import "@nomiclabs/hardhat-solhint";
import { generatePrivateKey } from "viem/accounts";

const PRIVATE_KEY = vars.get("PRIVATE_KEY");
const ETHERSCAN_API_KEY = vars.get("ETHERSCAN_API_KEY");
const PRIVATE_KEY = vars.has("PRIVATE_KEY")
? vars.get("PRIVATE_KEY")
: generatePrivateKey();
const ETHERSCAN_API_KEY = vars.has("ETHERSCAN_API_KEY")
? vars.get("ETHERSCAN_API_KEY")
: "";

const config: HardhatUserConfig = {
solidity: {
Expand Down

0 comments on commit e41864e

Please sign in to comment.