Skip to content

Commit

Permalink
Stop overwriting forking config in extendConfig (#893)
Browse files Browse the repository at this point in the history
  • Loading branch information
cgewecke authored Aug 29, 2024
1 parent fcf858f commit df1df12
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions plugins/hardhat.plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit df1df12

Please sign in to comment.