Remix: CompilerError: Stack too deep when compiling inline assembly: Variable value0 is 1 slot(s) too deep inside the stack.
2 分钟阅读
朱安邦
问题描述
在 Remix 0.6.12 版本上报错:
CompilerError: Stack too deep when compiling inline assembly:
Variable value0 is 1 slot(s) too deep inside the stack.
在 Remix 0.8.17 版本上报错
CompilerError: 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 value0 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.