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

Method SetCallCode

core/vm/contract.go:149–153  ·  view source on GitHub ↗

SetCallCode sets the code of the contract and address of the backing data object

(addr *common.Address, hash common.Hash, code []byte)

Source from the content-addressed store, hash-verified

147// SetCallCode sets the code of the contract and address of the backing data
148// object
149func (c *Contract) SetCallCode(addr *common.Address, hash common.Hash, code []byte) {
150 c.Code = code
151 c.CodeHash = hash
152 c.CodeAddr = addr
153}

Callers 5

callMethod · 0.95
callCodeMethod · 0.95
StaticCallMethod · 0.95
CreateMethod · 0.95
delegateCallMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected