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

Method CallCode

core/vm/evm.go:209–212  ·  view source on GitHub ↗
(caller ContractRef, addr common.Address, input []byte, gas uint64, value *big.Int)

Source from the content-addressed store, hash-verified

207}
208
209func (evm *EVM) CallCode(caller ContractRef, addr common.Address, input []byte, gas uint64, value *big.Int) (ret []byte, leftOverGas uint64, err error) {
210 realAddress := GetRealContractAddress(evm, caller, addr, gas)
211 return evm.callCode(caller, realAddress, input, gas, value)
212}
213
214// CallCode executes the contract associated with the addr with the given input
215// as parameters. It also handles any necessary value transfer required and takes

Callers

nothing calls this directly

Calls 2

callCodeMethod · 0.95
GetRealContractAddressFunction · 0.85

Tested by

no test coverage detected