Skip to main content

invoke_unchecked

Function invoke_unchecked 

Source
pub unsafe fn invoke_unchecked(
    instruction: &InstructionView<'_, '_, '_, '_>,
    accounts: &[CpiAccount<'_>],
) -> ProgramResult
Expand description

Invoke a CPI without borrow validation (lowest CU cost).

ยงSafety

The caller must ensure no account data borrows conflict with the CPI.