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