Skip to content

Commit

Permalink
core/state: fix panic in state dumping (#22225)
Browse files Browse the repository at this point in the history
  • Loading branch information
holiman committed Jan 26, 2021
1 parent 573f373 commit 14d4954
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/state/dump.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func (s *StateDB) DumpToCollector(c DumpCollector, excludeCode, excludeStorage,
account.SecureKey = it.Key
}
addr := common.BytesToAddress(addrBytes)
obj := newObject(nil, addr, data)
obj := newObject(s, addr, data)
if !excludeCode {
account.Code = common.Bytes2Hex(obj.Code(s.db))
}
Expand Down

0 comments on commit 14d4954

Please sign in to comment.