Hey everyone,

I am getting a Compilation Error in Solidity that says: "STACK TOO DEEP"

As per some solutions I need to reduce the number of local variables..

However, I cannot remove any more local variables now.

Any idea on how to solve this error WITHOUT ELIMINATING ANY LOCAL VARIABLES?

Jun 7, 2020, 12:02 PM
You can try breaking your offending function into multiple functions
Jun 7, 2020, 12:14 PM
https://ethereum.stackexchange.com/a/83842/3032
Jun 7, 2020, 5:01 PM

© 2024 Draquery.com All rights reserved.