Skip to content

Commit

Permalink
Use single env file
Browse files Browse the repository at this point in the history
  • Loading branch information
eternauta1337 committed Feb 23, 2024
1 parent 7f2a50b commit 6d08bc6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ETHERSCAN_API_KEY=
ALCHEMY_API_KEY=
OPENAI_API_KEY=
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
require('dotenv').config()
require('dotenv').config({
path: require('path').resolve(__dirname, '../../../../../.env'),
})
require('@nomicfoundation/hardhat-ethers')
require('../../../src/index')
require('../../../../ethernaut-toolbox/src/index')
Expand Down
4 changes: 3 additions & 1 deletion packages/ethernaut-cli/hardhat.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
require('dotenv').config()
require('dotenv').config({
path: require('path').resolve(__dirname, '../../.env'),
})

require('ethernaut-ui')
require('ethernaut-toolbox')
Expand Down

0 comments on commit 6d08bc6

Please sign in to comment.