Describe the feature you would like

For some 0.5.x contracts, the contracts can only be compiled with optimization on. If I turn off the optimization, it throws error Compiler run failed InternalCompilerError: Assembly exception for bytecode.

For forge coverage, it turns off the optimization by default when building the contract.

I wonder if we can make the optimization setting for forge coverage also optional and can be set by the user?

Additional context

No response

© 2022 - All rights reserved.