Incorrect parameterSlots
and returnSlots
for some methods in functionDebugData
#14874
Labels
bug 🐛
low effort
There is not much implementation work to be done. The task is very easy or tiny.
medium impact
Default level of impact
must have
Something we consider an essential part of Solidity 1.0.
Description
The
parameterSlots
, andreturnSlots
values for thefunctionDebugData
of some compiler generated methods implementing getters are wrong.Environment
Steps to Reproduce
Compiling the following json file using
solc --standard-json
:Returns the following bytecode:
and
functionDebugData
:Function
@stakes_4
is reported to take 0 parameters and have 0 returns.However if we disassemble the relevant blocks we can see that it consumes 1 item from the stack and leaves 1 (or 2) items on it after its execution is completed.
The text was updated successfully, but these errors were encountered: