Commit 2b6c67f8 authored by elenadimitrova's avatar elenadimitrova

Add default empty account to hardhat config to avoid it erroring

parent 36cb5368
...@@ -25,6 +25,8 @@ import 'hardhat-gas-reporter' ...@@ -25,6 +25,8 @@ import 'hardhat-gas-reporter'
dotenv.config() dotenv.config()
const enableGasReport = !!process.env.ENABLE_GAS_REPORT const enableGasReport = !!process.env.ENABLE_GAS_REPORT
const privateKey = process.env.PRIVATE_KEY ||
"0x0000000000000000000000000000000000000000000000000000000000000000"; // this is to avoid hardhat error
const config: HardhatUserConfig = { const config: HardhatUserConfig = {
networks: { networks: {
...@@ -45,17 +47,17 @@ const config: HardhatUserConfig = { ...@@ -45,17 +47,17 @@ const config: HardhatUserConfig = {
'optimism-kovan': { 'optimism-kovan': {
chainId: 69, chainId: 69,
url: 'https://kovan.optimism.io', url: 'https://kovan.optimism.io',
accounts: [process.env.PRIVATE_KEY], accounts: [privateKey],
gasPrice: 15000000, gasPrice: 15000000,
ovm: true, ovm: true,
}, },
'optimism-mainnet': { 'optimism-mainnet': {
chainId: 10, chainId: 10,
url: 'https://mainnet.optimism.io', url: 'https://mainnet.optimism.io',
accounts: [process.env.PRIVATE_KEY], accounts: [privateKey],
gasPrice: 15000000, gasPrice: 15000000,
ovm: true, ovm: true,
} },
}, },
mocha: { mocha: {
timeout: 50000, timeout: 50000,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment