You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is only one slot in the post output, showing the slot that increased. The second changed slot (which was zeroed) is not included in the output.
From #25422 (comment) I can see this change was intentional, but I don't understand how it is trivial to fix this problem given that the output gives no indication as to why the slot is not included in post- it could either be unchanged by the tx or it could be zero'd
The text was updated successfully, but these errors were encountered:
From #25422 (comment) I can see this change was intentional, but I don't understand how it is trivial to fix this problem given that the output gives no indication as to why the slot is not included in post- it could either be unchanged by the tx or it could be zero'd
This is not documented very well, but you will find the system in this comment: #25422 (comment).
For the case you mentioned the rule is: if it is included in pre and not in post means it was cleared. If it's not included in pre nor post then it has not been modified.
The intuition here is that this is a diff, a slot that hasn't been modified shouldn't be part of diff at all.
System information
Geth version: 1.11.5
CL client & version: e.g. lighthouse@v4.1.0
OS & Version: Linux
Expected behaviour
When calling
debug_traceCall
with a transaction, I should receive a diff which shows me all changes made to storage when this tx is executedActual behaviour
When a storage slot is zeroed OR unchanged it is not included in the
post
output. There appears to be no way to disambiguate these two cases.Steps to reproduce the behaviour
Check https://etherscan.io/tx/0x5ca691b0415722b95b596b2cfd45cee7572540e456accd8478445e40c86ab778#statechange
For the frxETH token, we can see that two storage slots were changed- one increased and one is zeroed.
When I check the trace output of this call:
There is only one slot in the
post
output, showing the slot that increased. The second changed slot (which was zeroed) is not included in the output.From #25422 (comment) I can see this change was intentional, but I don't understand how it is trivial to fix this problem given that the output gives no indication as to why the slot is not included in
post
- it could either be unchanged by the tx or it could be zero'dThe text was updated successfully, but these errors were encountered: