Skip to content

Commit

Permalink
add vars default values
Browse files Browse the repository at this point in the history
  • Loading branch information
a17 committed May 21, 2024
1 parent fc9c51d commit 25b405e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
import { HardhatUserConfig, vars } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";

const DEFAULT_PRIVATE_KEY = "0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80"

const config: HardhatUserConfig = {
solidity: "0.8.24",
networks: {
polygon: {
url: "https://polygon-rpc.com",
accounts: [vars.get("PRIVATE_KEY"),],
accounts: [vars.get("PRIVATE_KEY", DEFAULT_PRIVATE_KEY),],
},
},
etherscan: {
apiKey: vars.get("ETHERSCAN_API_KEY"),
apiKey: vars.get("ETHERSCAN_API_KEY", ""),
},
};

Expand Down

0 comments on commit 25b405e

Please sign in to comment.