Skip to content

Commit

Permalink
Add updateHardhatNetwork method
Browse files Browse the repository at this point in the history
  • Loading branch information
zZoMROT committed Nov 15, 2023
1 parent c74d002 commit c0a1ce7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c0a1ce7

Please sign in to comment.