|
|
@ -104,9 +104,13 @@ try { |
|
|
|
// Coverage network opts NOT specified: default to the development network w/ modified
|
|
|
|
// Coverage network opts NOT specified: default to the development network w/ modified
|
|
|
|
// port, gasLimit, gasPrice. Export the config object only.
|
|
|
|
// port, gasLimit, gasPrice. Export the config object only.
|
|
|
|
} else { |
|
|
|
} else { |
|
|
|
truffleConfig.networks.development.port = port; |
|
|
|
truffleConfig.networks.development = { |
|
|
|
truffleConfig.networks.development.gas = gasLimitHex; |
|
|
|
host: "localhost", |
|
|
|
truffleConfig.networks.development.gasPrice = gasPriceHex; |
|
|
|
network_id: "*",
|
|
|
|
|
|
|
|
port: port, |
|
|
|
|
|
|
|
gas: gasLimitHex, |
|
|
|
|
|
|
|
gasPrice: gasPriceHex |
|
|
|
|
|
|
|
} |
|
|
|
coverageOption = ''; |
|
|
|
coverageOption = ''; |
|
|
|
fs.writeFileSync(`${coverageDir}/truffle.js`, `module.exports = ${JSON.stringify(truffleConfig)}`); |
|
|
|
fs.writeFileSync(`${coverageDir}/truffle.js`, `module.exports = ${JSON.stringify(truffleConfig)}`); |
|
|
|
} |
|
|
|
} |
|
|
|