Internal libraries in contracts does not internal into code if viaIR-mode is enabled and solidity-coverage is running #14055
Labels
closed due inactivity
The issue/PR was automatically closed due to inactivity.
stale
The issue/PR was marked as stale because it has been open for too long.
Solidity-coverage has broken inliner optimization.
When I run coverage with optimizerSteps:
(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
The text was updated successfully, but these errors were encountered: