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

[Bug]: Compilation fails with YulException: Variable expr_mpos_2 is 1 too deep in the stack #422

Open
HollaDieWaldfee100 opened this issue Dec 30, 2024 · 1 comment · May be fixed by #423
Labels
bug Something isn't working

Comments

@HollaDieWaldfee100
Copy link

Describe the bug

I'm trying to compile the code with forge test but I get this error:

Error: Compiler run failed:
Error: Yul exception:Variable expr_mpos_2 is 1 too deep in the stack [ _10 expr_14 expr_15 expr_mpos_2 expr expr_13 expr_component expr_6 expr_5 expr_14 expr_mpos_1 expr_mpos expr_address_1 _10 expr_13 _10 _11 _11 _12 expr_18 ]
No memoryguard was present. Consider using memory-safe assembly only and annotating it via 'assembly ("memory-safe") { ... }'.
YulException: Variable expr_mpos_2 is 1 too deep in the stack [ _10 expr_14 expr_15 expr_mpos_2 expr expr_13 expr_component expr_6 expr_5 expr_14 expr_mpos_1 expr_mpos expr_address_1 _10 expr_13 _10 _11 _11 _12 expr_18 ]
No memoryguard was present. Consider using memory-safe assembly only and annotating it via 'assembly ("memory-safe") { ... }'.

Expected Behavior

Should compile successfully

To Reproduce

I have simply cloned the repository and run forge test

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant