We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 036116c commit cbf97c9Copy full SHA for cbf97c9
src/tracing/builder/geth.rs
@@ -319,7 +319,15 @@ impl<'a> GethTraceBuilder<'a> {
319
320
// determine the change type
321
let pre_change = if changed_acc.is_created() {
322
- AccountChangeKind::Create
+ // if the account was created _and_ selfdestructed we need to treat it as modified,
323
+ // so that it is retained later in `diff_traces`
324
+ // See <https://etherscan.io/tx/0x391f4b6a382d3bcc3120adc2ea8c62003e604e487d97281129156fd284a1a89d>
325
+ // <https://github.com/paradigmxyz/reth/issues/19703#issuecomment-3527067849>
326
+ if changed_acc.is_selfdestructed() {
327
+ AccountChangeKind::Modify
328
+ } else {
329
+ AccountChangeKind::Create
330
+ }
331
} else {
332
AccountChangeKind::Modify
333
};
0 commit comments