From df1df120d1787517d593875b0809cfbb4f04f21b Mon Sep 17 00:00:00 2001 From: cgewecke Date: Wed, 28 Aug 2024 21:26:31 -0700 Subject: [PATCH] Stop overwriting forking config in extendConfig (#893) --- plugins/hardhat.plugin.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/plugins/hardhat.plugin.js b/plugins/hardhat.plugin.js index c14dc82d..9bb18fb4 100644 --- a/plugins/hardhat.plugin.js +++ b/plugins/hardhat.plugin.js @@ -24,16 +24,11 @@ const ui = new PluginUI(); // Workaround for hardhat-viem-plugin and other provider redefinition conflicts extendConfig((config, userConfig) => { if (Boolean(process.env.SOLIDITY_COVERAGE)) { - const { cloneDeep } = require("lodash"); const { configureHardhatEVMGas } = require('./resources/nomiclabs.utils'); const API = require('./../lib/api'); const api = new API({}); - let hardhatNetworkForCoverage = {}; - if (userConfig.networks && userConfig.networks.hardhat) { - hardhatNetworkForCoverage = cloneDeep(userConfig.networks.hardhat); - }; - + const hardhatNetworkForCoverage = {}; configureHardhatEVMGas(hardhatNetworkForCoverage, api); config.networks.hardhat = Object.assign(config.networks.hardhat, hardhatNetworkForCoverage); }