I got my smart contracts ready over Hardhat and once I'm running
hh test all the tests are passing successfully but while running
hh coverage I'm getting the below error.
Any idea why the regular tests are working but the coverage isn't?
How can this be solved?
Version ======= > solidity-coverage: v0.7.20 Instrumenting for coverage... ============================= > MyContract1.sol > MyContract2.sol > MyContract3.sol Compilation: ============ Compiling 35 files with 0.8.6 CompilerError: Stack too deep when compiling inline assembly: Variable headStart is 1 slot(s) too deep inside the stack. Error in plugin solidity-coverage: HardhatError: HH600: Compilation failed