Function solana_program::program::invoke
source · [−]pub fn invoke(
instruction: &Instruction,
account_infos: &[AccountInfo<'_>]
) -> ProgramResult
Expand description
Invoke a cross-program instruction.
Notes:
- RefCell checking can be compute unit expensive, to avoid that expense use
invoke_unchecked
instead, but at your own risk.