Skip to content

Commit

Permalink
hardhat config settings
Browse files Browse the repository at this point in the history
  • Loading branch information
maikelordaz committed Aug 3, 2022
1 parent f2e3bab commit 2f225e6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
PRIVATE_KEY=234523425asdfasdfa
ALICE_PRIVATE_KEY=
BOB_PRIVATE_KEY=
CHARLIE_PRIVATE_KEY=
RINKEBY_RPC_URL=http://0.0.0.0:8545
COINMARKETCAP_API_KEY=asdfasdfasdfasdfasdfasdfasdf
ETHERSCAN_API_KEY=asdfasdfasdfs
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.env
node_modules
artifacts
cache
cache
deployments
5 changes: 4 additions & 1 deletion hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ require("hardhat-contract-sizer")
require("dotenv").config()

const PRIVATE_KEY = process.env.PRIVATE_KEY
const ALICE_PRIVATE_KEY = process.env.ALICE_PRIVATE_KEY
const BOB_PRIVATE_KEY = process.env.BOB_PRIVATE_KEY
const CHARLIE_PRIVATE_KEY = process.env.CHARLIE_PRIVATE_KEY
const RINKEBY_RPC_URL = process.env.RINKEBY_RPC_URL
const COINMARKETCAP_API_KEY = process.env.COINMARKETCAP_API_KEY
const ETHERSCAN_API_KEY = process.env.ETHERSCAN_API_KEY
Expand All @@ -25,7 +28,7 @@ module.exports = {
},
rinkeby: {
chainId: 4,
accounts: [PRIVATE_KEY],
accounts: [PRIVATE_KEY, ALICE_PRIVATE_KEY, BOB_PRIVATE_KEY, CHARLIE_PRIVATE_KEY],
url: RINKEBY_RPC_URL,
blockConfirmations: 6,
},
Expand Down

0 comments on commit 2f225e6

Please sign in to comment.