Function concordium_std::send[][src]

pub fn send<A: HasActions, P: Serial>(
    ca: &ContractAddress,
    receive_name: ReceiveName<'_>,
    amount: Amount,
    parameter: &P
) -> A
Expand description

Wrapper for HasActions::send_raw, which automatically serializes the parameter. Note that if the parameter is already a byte array or convertible to a byte array without allocations it is preferrable to use send_raw. It is more efficient and avoids memory allocations.