MCPcopy Create free account
hub / github.com/CPChain/chain / GetCodeHash

Method GetCodeHash

core/state/statedb.go:231–237  ·  view source on GitHub ↗
(addr common.Address)

Source from the content-addressed store, hash-verified

229}
230
231func (self *StateDB) GetCodeHash(addr common.Address) common.Hash {
232 stateObject := self.getStateObject(addr)
233 if stateObject == nil {
234 return common.Hash{}
235 }
236 return common.BytesToHash(stateObject.CodeHash())
237}
238
239func (self *StateDB) GetState(addr common.Address, bhash common.Hash) common.Hash {
240 stateObject := self.getStateObject(addr)

Callers

nothing calls this directly

Calls 2

getStateObjectMethod · 0.95
CodeHashMethod · 0.80

Tested by

no test coverage detected