|
|
@ -24,16 +24,11 @@ const ui = new PluginUI(); |
|
|
|
// Workaround for hardhat-viem-plugin and other provider redefinition conflicts
|
|
|
|
// Workaround for hardhat-viem-plugin and other provider redefinition conflicts
|
|
|
|
extendConfig((config, userConfig) => { |
|
|
|
extendConfig((config, userConfig) => { |
|
|
|
if (Boolean(process.env.SOLIDITY_COVERAGE)) { |
|
|
|
if (Boolean(process.env.SOLIDITY_COVERAGE)) { |
|
|
|
const { cloneDeep } = require("lodash"); |
|
|
|
|
|
|
|
const { configureHardhatEVMGas } = require('./resources/nomiclabs.utils'); |
|
|
|
const { configureHardhatEVMGas } = require('./resources/nomiclabs.utils'); |
|
|
|
const API = require('./../lib/api'); |
|
|
|
const API = require('./../lib/api'); |
|
|
|
const api = new API({}); |
|
|
|
const api = new API({}); |
|
|
|
|
|
|
|
|
|
|
|
let hardhatNetworkForCoverage = {}; |
|
|
|
const hardhatNetworkForCoverage = {}; |
|
|
|
if (userConfig.networks && userConfig.networks.hardhat) { |
|
|
|
|
|
|
|
hardhatNetworkForCoverage = cloneDeep(userConfig.networks.hardhat); |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
configureHardhatEVMGas(hardhatNetworkForCoverage, api); |
|
|
|
configureHardhatEVMGas(hardhatNetworkForCoverage, api); |
|
|
|
config.networks.hardhat = Object.assign(config.networks.hardhat, hardhatNetworkForCoverage); |
|
|
|
config.networks.hardhat = Object.assign(config.networks.hardhat, hardhatNetworkForCoverage); |
|
|
|
} |
|
|
|
} |
|
|
|