support local private key option
This commit is contained in:
parent
8eff5e13a5
commit
4e2ce3a261
|
@ -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"
|
|
@ -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: {
|
||||
|
|
Loading…
Reference in New Issue