Skip to content

CompilerError: Stack too deep when compiling inline assembly: Variable headStart is 1 slot(s) too deep inside the stack. #789

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

Closed
sanchitdawarsd opened this issue Mar 19, 2023 · 4 comments

Comments

@sanchitdawarsd
Copy link

CompilerError: Stack too deep when compiling inline assembly: Variable headStart is 1 slot(s) too deep inside the stack.

@dulumao
Copy link

dulumao commented Apr 25, 2023

Same as this bug.

@rya-sge
Copy link

rya-sge commented May 9, 2023

I think the problem comes from hardhat, instead of the coverage plugin

See the following issue ethereum/solidity#11638 & #760 you will find a list of possible solutions.

For me, the following fix has worked:
solidity: { version: '0.8.17', settings: { optimizer: { enabled: true, runs: 200, details: { yul: true } }, viaIR: false } }

@bengyles
Copy link

I think the problem comes from hardhat, instead of the coverage plugin

See the following issue ethereum/solidity#11638 & #760 you will find a list of possible solutions.

For me, the following fix has worked: solidity: { version: '0.8.17', settings: { optimizer: { enabled: true, runs: 200, details: { yul: true } }, viaIR: false } }

your fix seems to work for me, thanks!

@cgewecke
Copy link
Member

Closing here - all stack too deep & viaIR discussion will continue at #715

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

5 participants