Skip to content

Commit

Permalink
feat: modify cli/.env.template and allow hardhat.config.ts to read en…
Browse files Browse the repository at this point in the history
…v variables
  • Loading branch information
kittybest committed Jan 11, 2024
1 parent 0fec6b9 commit a206df1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cli/.env.template
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
## and that none of these values are mandatory for testing
## purposes

# Ethereum provider, replace with your own
# needed if running in production against
# a test network
ETH_PROVIDER="the_eth_provider_url"
# Ethereum secret key, replace with your own
# needed if running in production against
# a test network
Expand Down
3 changes: 3 additions & 0 deletions cli/hardhat.config.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
import "@nomicfoundation/hardhat-toolbox";
import { config as envConfig } from "dotenv";

import path from "path";

import type { HardhatUserConfig } from "hardhat/config";

import { DEFAULT_ETH_SK, DEFAULT_ETH_PROVIDER } from "./ts/utils/defaults";

envConfig();

const parentDir = __dirname.includes("build") ? ".." : "";

const config: HardhatUserConfig = {
Expand Down

0 comments on commit a206df1

Please sign in to comment.