From 23549614cafee588c127f15f3ea09adf0e0f0187 Mon Sep 17 00:00:00 2001 From: stubbsta Date: Wed, 20 Mar 2024 15:12:40 +0200 Subject: [PATCH] deploy localhost uses provided RPC URL or default --- hardhat.config.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hardhat.config.ts b/hardhat.config.ts index 98d68cf..2e1d9e8 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -35,14 +35,14 @@ const getNetworkConfig = (): NetworksUserConfig | undefined => { url: "http://localhost:8545", }, }; - } else if (RPC_PROVIDER) { + } else { + const LOCALHOST_PROVIDER = RPC_PROVIDER || "http://localhost:8545"; return { localhost_integration: { - url: RPC_PROVIDER, + url: LOCALHOST_PROVIDER, }, }; } - return undefined; }; // You need to export an object to set up your config