core/state: fix panic in state dumping (#22225)

pull/22385/head
Martin Holst Swende 4 years ago committed by GitHub
parent 573f373d2b
commit 14d495491d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      core/state/dump.go

@ -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))
}

Loading…
Cancel
Save