[][src]Function casperlabs_contract::contract_api::runtime::call_contract

pub fn call_contract<A: ArgsParser, T: CLTyped + FromBytes>(
    c_ptr: ContractRef,
    args: A
) -> T

Calls the given stored contract, passing the given arguments to it.

If the stored contract calls ret, then that value is returned from call_contract. If the stored contract calls revert, then execution stops and call_contract doesn't return. Otherwise call_contract returns ().