You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running forge test on the v4-core project, the compiler throws a "Stack too deep" error. The error message suggests using --via-ir or enabling the optimizer to bypass this issue. Running the test with the --via-ir flag resolves the issue, but this should ideally work without needing additional flags.
Expected Behavior
The forge test command should run successfully without requiring the --via-ir flag, and all tests should pass without any "Stack too deep" compiler errors.
To Reproduce
forge test
[⠆] Compiling...
[⠔] Compiling 125 files with Solc 0.8.26
[⠒] Solc 0.8.26 finished in 3.17s
Error:
Compiler run failed:
Error: Compiler error (C:\Users\circleci\project\libsolidity\codegen\LValue.cpp:51):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.
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.
--> lib/v4-core/src/PoolManager.sol:179:36:
|
179 | (callerDelta, hookDelta) = key.hooks.afterModifyLiquidity(key, params, callerDelta, feesAccrued, hookData);
| ^^^
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
When running forge test on the v4-core project, the compiler throws a "Stack too deep" error. The error message suggests using --via-ir or enabling the optimizer to bypass this issue. Running the test with the
--via-ir
flag resolves the issue, but this should ideally work without needing additional flags.Expected Behavior
The forge test command should run successfully without requiring the
--via-ir
flag, and all tests should pass without any "Stack too deep" compiler errors.To Reproduce
forge test
[⠆] Compiling...
[⠔] Compiling 125 files with Solc 0.8.26
[⠒] Solc 0.8.26 finished in 3.17s
Error:
Compiler run failed:
Error: Compiler error (C:\Users\circleci\project\libsolidity\codegen\LValue.cpp:51):Stack too deep. Try compiling with
--via-ir
(cli) or the equivalentviaIR: true
(standard JSON) while enabling the optimizer. Otherwise, try removing local variables.CompilerError: Stack too deep. Try compiling with
--via-ir
(cli) or the equivalentviaIR: true
(standard JSON) while enabling the optimizer. Otherwise, try removing local variables.--> lib/v4-core/src/PoolManager.sol:179:36:
|
179 | (callerDelta, hookDelta) = key.hooks.afterModifyLiquidity(key, params, callerDelta, feesAccrued, hookData);
| ^^^
Additional context
No response
The text was updated successfully, but these errors were encountered: