From efac70de2776f79e0363e274b4f5151c90a6e397 Mon Sep 17 00:00:00 2001 From: jo-elimu <1451036+jo-elimu@users.noreply.github.com> Date: Fri, 28 Jun 2024 18:39:09 +0700 Subject: [PATCH] fix(backend): private key too short refs #16 --- backend/hardhat.config.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/hardhat.config.ts b/backend/hardhat.config.ts index 1ed8b60..2f5cab4 100644 --- a/backend/hardhat.config.ts +++ b/backend/hardhat.config.ts @@ -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: { @@ -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: {