pub fn call_contract<T: CLTyped + FromBytes>(
    contract_hash: ContractHash,
    entry_point_name: &str,
    runtime_args: RuntimeArgs
) -> T
Expand description

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 ().