support local private key option

This commit is contained in:
Ladd Hoffman 2024-04-18 14:05:54 -05:00
parent 8eff5e13a5
commit 4e2ce3a261
2 changed files with 5 additions and 3 deletions

View File

@ -1,7 +1,9 @@
API_URL="https://demo.dgov.io/api"
CA_PATH=
LOCAL_PRIVATE_KEY=
SEPOLIA_PRIVATE_KEY=
MAINNET_PRIVATE_KEY=
SEED_PHRASE=
ETHERSCAN_API_KEY=
WORK1_PRICE="0.001"
ONBOARDING_PRICE="0.001"

View File

@ -7,9 +7,9 @@ module.exports = {
solidity: '0.8.24',
networks: {
hardhat: {
accounts: {
mnemonic: process.env.SEED_PHRASE,
},
accounts: process.env.SEED_PHRASE
? { mnemonic: process.env.SEED_PHRASE }
: [process.env.LOCAL_PRIVATE_KEY],
chainId: 1337,
},
sepolia: {