Fix missed cache storage in ContractCodeSize

This commit is contained in:
Aleksandr Bezobchuk 2018-07-17 11:18:14 -04:00
parent b15d7f6d60
commit 4c317ba641

View File

@ -178,7 +178,8 @@ func (db *Database) ContractCodeSize(addrHash, codeHash ethcommon.Hash) (int, er
return cached.(int), nil
}
return len(db.codeDB.Get(codeHash[:])), nil
code, err := db.ContractCode(addrHash, codeHash)
return len(code), err
}
// Commit commits the underlying Cosmos SDK multi-store returning the commit