Skip to content

Commit 14d4954

Browse files
authored
core/state: fix panic in state dumping (#22225)
1 parent 573f373 commit 14d4954

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/state/dump.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ func (s *StateDB) DumpToCollector(c DumpCollector, excludeCode, excludeStorage,
138138
account.SecureKey = it.Key
139139
}
140140
addr := common.BytesToAddress(addrBytes)
141-
obj := newObject(nil, addr, data)
141+
obj := newObject(s, addr, data)
142142
if !excludeCode {
143143
account.Code = common.Bytes2Hex(obj.Code(s.db))
144144
}

0 commit comments

Comments
 (0)