We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a7c40f5 + 4cd93d4 commit 805982bCopy full SHA for 805982b
1 file changed
ctxc/tracers/native/prestate.go
@@ -250,11 +250,12 @@ func (t *prestateTracer) CaptureTxEnd(restGas uint64) {
250
delete(t.pre, addr)
251
}
252
253
- // the new created contracts' prestate were empty, so delete them
254
- for a := range t.created {
255
- // the created contract maybe exists in statedb before the creating tx
256
- if s := t.pre[a]; s != nil && !s.exists() {
257
- delete(t.pre, a)
+
+ // Remove accounts that were empty prior to execution. Unless
+ // user requested to include empty accounts.
+ for addr, s := range t.pre {
+ if s.empty {
258
+ delete(t.pre, addr)
259
260
261
0 commit comments