Skip to content

Commit

Permalink
Merge pull request #44 from VenusProtocol/fix/VEN-2197
Browse files Browse the repository at this point in the history
[VEN-2197]: unify the use of the env variable DEPLOYER_PRIVATE_KEY
  • Loading branch information
chechu authored Dec 1, 2023
2 parents 7ff85a6 + 59ee4ad commit 1f8653f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import "solidity-docgen";

require("dotenv").config();

Check warning on line 15 in hardhat.config.ts

View workflow job for this annotation

GitHub Actions / Lint

Require statement not part of import statement

const DEPLOYER_PRIVATE_KEY = process.env.DEPLOYER_PRIVATE_KEY;

task("accounts", "Prints the list of accounts", async (taskArgs, hre) => {
const accounts = await hre.ethers.getSigners();

Expand Down Expand Up @@ -93,14 +95,14 @@ const config: HardhatUserConfig = {
},
bscmainnet: {
url: process.env.ARCHIVE_NODE_bscmainnet || "https://bsc-dataseed.binance.org/",
accounts: process.env.DEPLOYER_PRIVATE_KEY ? [`0x${DEPLOYER_PRIVATE_KEY}`] : [],
accounts: DEPLOYER_PRIVATE_KEY ? [`0x${DEPLOYER_PRIVATE_KEY}`] : [],
},
sepolia: {
url: process.env.ARCHIVE_NODE_sepolia || "https://ethereum-sepolia.blockpi.network/v1/rpc/public",
chainId: 11155111,
live: true,
gasPrice: 20000000000, // 20 gwei
accounts: process.env.DEPLOYER_PRIVATE_KEY ? [`0x${DEPLOYER_PRIVATE_KEY}`] : [],
accounts: DEPLOYER_PRIVATE_KEY ? [`0x${DEPLOYER_PRIVATE_KEY}`] : [],
},
ethereum: {
url: process.env.ARCHIVE_NODE_ethereum || "https://ethereum.blockpi.network/v1/rpc/public",
Expand Down

0 comments on commit 1f8653f

Please sign in to comment.