forked from cerc-io/laconicd-deprecated
Merge pull request #438 from cosmos/bez/code-size-cache-fix
Fix missed cache storage in ContractCodeSize
This commit is contained in:
commit
6f9af564d5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user