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

Method DelegateCall

core/vm/evm.go:255–258  ·  view source on GitHub ↗
(caller ContractRef, addr common.Address, input []byte, gas uint64)

Source from the content-addressed store, hash-verified

253}
254
255func (evm *EVM) DelegateCall(caller ContractRef, addr common.Address, input []byte, gas uint64) (ret []byte, leftOverGas uint64, err error) {
256 realAddress := GetRealContractAddress(evm, caller, addr, gas)
257 return evm.delegateCall(caller, realAddress, input, gas)
258}
259
260// DelegateCall executes the contract associated with the addr with the given input
261// as parameters. It reverses the state in case of an execution error.

Callers

nothing calls this directly

Calls 2

delegateCallMethod · 0.95
GetRealContractAddressFunction · 0.85

Tested by

no test coverage detected