Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the need to run with --via-ir #53

Open
0xmichalis opened this issue Apr 24, 2024 · 0 comments
Open

Remove the need to run with --via-ir #53

0xmichalis opened this issue Apr 24, 2024 · 0 comments

Comments

@0xmichalis
Copy link
Member

Currently one of the fuzz tests will fail to compile due to a stack too deep error which forces us to always compile and test with --via-ir which is much slower than the normal mode. We should fix the stack too deep issue in the fuzz test if possible and remove the need to run everything with --via-ir.

$ forge build
[⠆] Compiling...
[⠊] Compiling 66 files with 0.8.19
[⠢] Solc 0.8.19 finished in 3.60s
Error: 
Compiler run failed:
Error: Compiler error (/solidity/libsolidity/codegen/LValue.cpp:52):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.
   --> test/FeeCalculatorFuzzy/FeeCalculatorERC1155.fuzzy.t.sol:114:33:
    |
114 |         for (uint256 i = 0; i < numberOfRedemptions; i++) {
@0xmichalis 0xmichalis changed the title Remove the need to compile with --via-ir Remove the need to run with --via-ir Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant