Skip to content

Commit

Permalink
generatePrivateKey
Browse files Browse the repository at this point in the history
  • Loading branch information
cyri113 committed Aug 30, 2024
1 parent d0237d3 commit c7beead
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion hardhat.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
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.has("PRIVATE_KEY") ? vars.get("PRIVATE_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")
: "";
Expand Down

0 comments on commit c7beead

Please sign in to comment.