From a5aff434454abb4ccdb0221b7f4cc33b4b6b6d0a Mon Sep 17 00:00:00 2001 From: akihiro tanaka Date: Tue, 21 Jan 2025 17:54:32 +0900 Subject: [PATCH] fix: fix hardhat.config.js --- hardhat.config.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hardhat.config.js b/hardhat.config.js index 7fb6511..4c8fb2c 100644 --- a/hardhat.config.js +++ b/hardhat.config.js @@ -12,6 +12,7 @@ const accounts = [ ]; const testAccounts = require("./accountsList.js"); const testAccountsList = testAccounts.accountsList; +const rpcEndpoint = process.env.RPC_ENDPOINT || ""; module.exports = { paths: { @@ -55,12 +56,12 @@ module.exports = { accounts, }, mainnet: { - url: process.env.RPC_ENDPOINT, + url: rpcEndpoint, gasPrice: process.env.GAS_PRICE ? parseInt(process.env.GAS_PRICE) : "auto", accounts, }, testnet: { - url: process.env.RPC_ENDPOINT, + url: rpcEndpoint, accounts, }, },