Skip to content

Commit

Permalink
fix(backend): private key too short
Browse files Browse the repository at this point in the history
refs #16
  • Loading branch information
jo-elimu committed Jun 28, 2024
1 parent 4408e4c commit efac70d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import "@nomicfoundation/hardhat-toolbox";

require("dotenv").config();

const WALLET_KEY = process.env.WALLET_KEY || "";
const privateKeys = process.env.WALLET_KEY ? [process.env.WALLET_KEY] : []

const config: HardhatUserConfig = {
solidity: {
Expand All @@ -15,11 +15,11 @@ const config: HardhatUserConfig = {
networks: {
base_sepolia: { // Chain ID 84532
url: "https://sepolia.base.org",
accounts: [WALLET_KEY]
accounts: privateKeys
},
base_mainnet: { // Chain ID 8453
url: "https://mainnet.base.org",
accounts: [WALLET_KEY]
accounts: privateKeys
}
},
etherscan: {
Expand Down

0 comments on commit efac70d

Please sign in to comment.