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

Method GetCode

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

Source from the content-addressed store, hash-verified

206}
207
208func (self *StateDB) GetCode(addr common.Address) []byte {
209 stateObject := self.getStateObject(addr)
210 if stateObject != nil {
211 return stateObject.Code(self.db)
212 }
213 return nil
214}
215
216func (self *StateDB) GetCodeSize(addr common.Address) int {
217 stateObject := self.getStateObject(addr)

Callers

nothing calls this directly

Calls 2

getStateObjectMethod · 0.95
CodeMethod · 0.80

Tested by

no test coverage detected