core/state: fix panic in state dumping (#22225)
This commit is contained in:
parent
573f373d2b
commit
14d495491d
@ -138,7 +138,7 @@ func (s *StateDB) DumpToCollector(c DumpCollector, excludeCode, excludeStorage,
|
|||||||
account.SecureKey = it.Key
|
account.SecureKey = it.Key
|
||||||
}
|
}
|
||||||
addr := common.BytesToAddress(addrBytes)
|
addr := common.BytesToAddress(addrBytes)
|
||||||
obj := newObject(nil, addr, data)
|
obj := newObject(s, addr, data)
|
||||||
if !excludeCode {
|
if !excludeCode {
|
||||||
account.Code = common.Bytes2Hex(obj.Code(s.db))
|
account.Code = common.Bytes2Hex(obj.Code(s.db))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user