solana_runtime::loader_utils

Function create_invoke_instruction

Source
pub fn create_invoke_instruction<T: Serialize>(
    from_pubkey: Pubkey,
    program_id: Pubkey,
    data: &T,
) -> Instruction