-
|
Hey 👋 I'll go under the Curve courses after Mox completion, to learn more about Defi. Just wondering about the error after cloning the repo inside the Error: Compiler run failed:
Error: Compiler error (/solidity/libyul/backends/evm/AsmCodeGen.cpp:62):Stack too deep.
Try compiling with `--via-ir` (cli) or the equivalent `viaIR: true` (standard JSON) while enabling the optimizer.
Otherwise, try removing local variables. When compiling inline assembly: Variable headStart is 1 slot(s) too deep inside the stack. Stack too deep.
Try compiling with `--via-ir` (cli) or the equivalent `viaIR: true` (standard JSON) while enabling the optimizer. Otherwise, try removing local variables.I can have the same result as in the video if I run
Thanks 👍 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
|
I think it is pretty normal to use |
Beta Was this translation helpful? Give feedback.
-
|
You could just include, via_ir = true in foundry.toml |
Beta Was this translation helpful? Give feedback.
I think it is pretty normal to use
--via-irto solve astack too deeperror, but if the instructor doesn't need to use--via-irand everything compiles fine for him. I will suggest you ensure that you have the same setup as the instructor and then see if that error still persists.