-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Misleading storage from trace_replayTransactions upon executing suicide on contract #8937
Comments
Can you please try with 1.11 as #8297 should solve your problem. I couldn't try as I do not have any |
Updated to Still get the same misleading result. Command
Relevant result
#8297 deals with adding account information to |
I could access an archive node and can confirm. |
Any updates on this? |
I think this is a bit more than just an annoyance, it's an interface inconsistency, and given the fact that the returned schema is used as a de-facto standard for traces even more important. That said, would be great to see this ticket included earlier! Thanks. |
Closing issue due to its stale state. |
Before filing a new issue, please provide the following information.
Issue:
Misleading storage from
trace_replayTransactions
upon executing suicide on contract.Expected
Suppose a contract has 2 positions [
pos1
,pos2
] in its storage with values [value1
,value2
] respectively. After contract suicide the storage of the contract should be wiped out. Thus a sample response of methodtrace_replayTransactions
in modestateDiff
should be:Response
But, the response from
trace_replayTransactions
in modestateDiff
shows no modification.Details
Let us take an example on the mainnet.
Transaction_hash 0x12945faff5df252934cfbc25353dbecf2175b5017a3990bb764b44b7cc763547 creates a contract
0x506f4b138e30f4ed0b9511d4d676eaaeca466983
. The following is the contract relevant response to the methodtrace_replayTransaction
for above transaction.3 positions in the contract storage have some value associated to them. The next transaction 0xc4af9cd2bba88af9f0f8e8fdbda2537751ef55b7ecacab5b8f2dade34d69f691 suicides the contract. Again, the following is the contract relevant response to the method
trace_replayTransaction
for above transaction.Notice, the values in balance, code and nonce have been removed, but the 3 positions that had been initialized have not been removed after the suicide call.
Note: There are no values in the contract storage, when verified after exporting the state. Thus the storage values are being deleted.
The text was updated successfully, but these errors were encountered: