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

Method Call

core/vm/interface.go:71–71  ·  view source on GitHub ↗

Call another contract

(env *EVM, me ContractRef, addr common.Address, data []byte, gas, value *big.Int)

Source from the content-addressed store, hash-verified

69type CallContext interface {
70 // Call another contract
71 Call(env *EVM, me ContractRef, addr common.Address, data []byte, gas, value *big.Int) ([]byte, error)
72 // Take another's contract code and execute within our own context
73 CallCode(env *EVM, me ContractRef, addr common.Address, data []byte, gas, value *big.Int) ([]byte, error)
74 // Same as CallCode except sender and value is propagated from parent to child scope

Callers 13

TransitionDbMethod · 0.65
opCallFunction · 0.65
ExecuteFunction · 0.65
CallFunction · 0.65
runTestFuncFunction · 0.65
execMethod · 0.65
createSubscriptionMethod · 0.65
handleMethod · 0.65
TestClientRequestFunction · 0.65
TestClientHTTPFunction · 0.65
requestUnsubscribeMethod · 0.65
pushBigIntFunction · 0.65

Implementers 2

NoopEVMCallContextcore/vm/noop.go
EVMcore/vm/evm.go

Calls

no outgoing calls

Tested by 4

runTestFuncFunction · 0.52
TestClientRequestFunction · 0.52
TestClientHTTPFunction · 0.52
TestAPIGatherFunction · 0.52