-
Notifications
You must be signed in to change notification settings - Fork 20.2k
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
callTracer is missing data for SELFDESTRUCT opcode #16459
Comments
|
I'm a bit torn on this one. Currently if I make a plain transaction, that fails, the tracer just tells me that value V was attempted to be transferred, fail/succeeded. It doesn't explicitly tell me the amount actually moved (as in V or 0). If we were to add the value movements to suicide, shouldn't we add it elsewhere? |
I think the I don't know how to consider selfdestruct. There is no |
I didn't know that suicide op is not aware of the value moved. In that case it does make sense to not include it as a The approach used in Parity traces seems interesting. They include
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
System information
Geth version:
1.9.2
OS & Version: Windows
Expected behaviour
If a transaction trace results in the contract being self-destruct,
callTracer
should return the value that was transferred withSELFDESTRUCT
opcode.For example in this transaction you can see that 101.5 Ether was transferred when the contract was executed:
https://etherscan.io/tx/0x8006a2927a31404cf381e7a440a41d47e7a8e0c85a496f70bc6cac235987898f
Actual behaviour
Right now the trace only contains the opcode type but no other fields (like
value
,from
andto
that would show how Ether was moved).Steps to reproduce the behaviour
SELFDESTRUCT
opcode on a contract that still has Ether (for example:0x8006a2927a31404cf381e7a440a41d47e7a8e0c85a496f70bc6cac235987898f
):The text was updated successfully, but these errors were encountered: