diff --git a/ethereum/.env.example b/ethereum/.env.example index a91e15e..1fe8104 100644 --- a/ethereum/.env.example +++ b/ethereum/.env.example @@ -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" \ No newline at end of file diff --git a/ethereum/hardhat.config.js b/ethereum/hardhat.config.js index 8b8ab69..b795b1b 100644 --- a/ethereum/hardhat.config.js +++ b/ethereum/hardhat.config.js @@ -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: {