core/state: fix TestDump

Lazy "I'll just put return here instead of fixing the test" found by go vet.
This commit is contained in:
Felix Lange
2016-04-15 11:16:56 +02:00
parent ebf3cf8f7d
commit 68c755a238
3 changed files with 27 additions and 9 deletions

View File

@ -287,7 +287,7 @@ func DecodeObject(address common.Address, db trie.Database, data []byte) (*State
}
if !bytes.Equal(ext.CodeHash, emptyCodeHash) {
if obj.code, err = db.Get(ext.CodeHash); err != nil {
return nil, fmt.Errorf("can't find code for hash %x: %v", ext.CodeHash, err)
return nil, fmt.Errorf("can't get code for hash %x: %v", ext.CodeHash, err)
}
}
obj.nonce = ext.Nonce