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

Method setCode

core/state/state_object.go:324–328  ·  view source on GitHub ↗
(codeHash common.Hash, code []byte)

Source from the content-addressed store, hash-verified

322}
323
324func (self *stateObject) setCode(codeHash common.Hash, code []byte) {
325 self.code = code
326 self.data.CodeHash = codeHash[:]
327 self.dirtyCode = true
328}
329
330func (self *stateObject) SetNonce(nonce uint64) {
331 self.db.journal.append(nonceChange{

Callers 2

SetCodeMethod · 0.95
revertMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected