Questions tagged [stack]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
15 views

CompilerError: Stack too deep, try removing local variables [duplicate]

While trying to fetch more than 6 variables I am having an issue. /** * Get data based on report id */ function getData(uint256 id) public view returns ( ...
0
votes
0answers
19 views

Out of stack DUP2 1/1024 when adding string to parameter

The below function was working fine until I added a string parameter and saved the string to a mapping. Now when I call it it fails with an 'out of stack' exception. Is there something I'm doing wrong ...
2
votes
0answers
30 views

How to run instrumented EVM in go

I'm working on a project where I would like to catch internal transactions and figure out the stack trace. For this reason, I have been trying to define an EVM log collector as recommended here. ...
0
votes
1answer
59 views

Stack too deep problem

I try to add more property to the scenario struct but when I run the compile the same error appear: struct Scenario { uint id; address payable author; address editor; ...
0
votes
1answer
30 views

Where does contract’s call failure behavior is definied in the yellow paper?

If a contract’s call succeeds then 0x1 is pushed on the stack and 0x0 otherwise. Where is this behavior defined in the yellow paper ? Also, are there cases were sending ether isn’t reverted in ...
5
votes
1answer
71 views

Why is the subcall gas limit set to 63/64th of the remaining gas?

From the solidity docs: Calls are limited to a depth of 1024, which means that for more complex operations, loops should be preferred over recursive calls. Furthermore, only 63/64th of the gas can ...
2
votes
1answer
27 views

Is it possible to disable “Stack too deep” errors while in development?

I know about the Stack too deep error and the workarounds for it, but I was wondering whether it's possible to disable it while in development. Is there a pragma experimental flag for this, similar ...
2
votes
2answers
262 views

Solidity modifiers: good or bad?

I've heard arguments both for and against Solidity modifiers. On the one hand, they make the code very readable, and the intents behind the calls are very clear. On the other, they increase the ...