Skip to content

Commit

Permalink
4
Browse files Browse the repository at this point in the history
  • Loading branch information
vorot93 committed Apr 5, 2021
1 parent 5c5fadb commit 26568db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/state/dump.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ func (d *Dumper) DumpToCollector(c DumpCollector, excludeCode, excludeStorage, _
incarnation := incarnationList[i]
storagePrefix := dbutils.PlainGenerateStoragePrefix(addr[:], incarnation)
if incarnation > 0 {
codeHash, err := ethdb.Get(d.db, dbutils.PlainContractCodeBucket, storagePrefix)
if err != nil && err != ethdb.ErrKeyNotFound {
codeHash, err := d.db.GetOne(dbutils.PlainContractCodeBucket, storagePrefix)
if err != nil {
return nil, fmt.Errorf("getting code hash for %x: %v", addr, err)
}
if codeHash != nil {
Expand Down

0 comments on commit 26568db

Please sign in to comment.