You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What happened?
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 (inliner optimization) 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
Version of Hardhat
2.13.0
What happened?
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 (inliner optimization) 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
Same my issue into ethereum/solidity#14055
Minimal reproduction steps
clone repo
yarn
yarn coverage
Search terms
viaIR, inliner, link library
The text was updated successfully, but these errors were encountered: