Function ink_env::invoke_contract_delegate
source · pub fn invoke_contract_delegate<E, Args, R>(
params: &CallParams<E, DelegateCall<E>, Args, R>,
) -> Result<MessageResult<R>>where
E: Environment,
Args: Encode,
R: Decode,
Expand description
Invokes a contract message via delegate call and returns its result.
§Note
This is a low level way to evaluate another smart contract via delegate call. Prefer to use the ink! guided and type safe approach to using this.
§Errors
- If the specified code hash does not exist.
- If arguments passed to the called code message are invalid.
- If the called code execution has trapped.