I have a smart contract that is barely below the limits of the solidity compiler.
When I try to enable optimization at 200 runs I get this error:
CompilerError: Stack too deep when compiling inline assembly: Variable length is 7 slot(s) too deep inside the stack.
Why is it not able to optimize my code? Is this expected? Is there some bug in the solidity compiler optimizer? Do I just need to enable different settings for my compilation?
Thanks!