From c0a1ce7ca40ee9c94da1c63f377b034044f6b00d Mon Sep 17 00:00:00 2001 From: Denis Date: Wed, 15 Nov 2023 21:09:37 +0400 Subject: [PATCH] Add updateHardhatNetwork method --- src/networks.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/networks.ts b/src/networks.ts index 22277e1d..4581f1d0 100644 --- a/src/networks.ts +++ b/src/networks.ts @@ -15,7 +15,10 @@ export class Networks { constructor(useHardhat: boolean = true, forkingNetworkName?: string, needAuthKeyHttpHeader: boolean = false, saveHardhatDeployments: boolean = false) { dotenv.config(); + this.updateHardhatNetwork(useHardhat, forkingNetworkName, needAuthKeyHttpHeader, saveHardhatDeployments); + } + updateHardhatNetwork(useHardhat: boolean, forkingNetworkName?: string, needAuthKeyHttpHeader: boolean = false, saveHardhatDeployments: boolean = false) { if (useHardhat || forkingNetworkName) { this.networks.hardhat = { chainId: Number(process.env.FORK_CHAIN_ID) || 31337,