Closed as not planned
Description
Solidity-coverage has broken inliner optimization.
When I run coverage with optimizerSteps:
"dhfoDgvlfnTUtnIf" +
"[" +
"xa[r]EscLM" +
"cCTUtTOntnfDIl" +
"Lcl" +
"Vcl [j]" +
"Tpel" +
"xa[rl]" +
"xa[r]cL" +
"gvif" +
"CTUca[r]LSsTFOtfDnca[r]Ilc"
"]" +
"jml[jl] VcTOcl jml",
(default settings without u
instrumentation in all steps) than all tests will be finished success. But If I remove "gvif"
step then I will have error:
NomicLabsHardhatPluginError: The contract <contract_name> is missing links for the following libraries: @openzeppelin/contracts/utils/math/Math.sol:Math
Repo/branch:
https://github.com/1inch/farming/tree/feature/enable_viaIR
Maybe problem into solidity-coverage code, but probably they do not make any injections into the optimization steps, and any of their actions should not affect the success of the code compilation.
I also added a comment to the solidity-coverage repo issue