pub fn invoke_unchecked(
instruction: &Instruction,
account_infos: &[AccountInfo<'_>],
) -> Result<(), ProgramError>
Expand description
Like solana_cpi::invoke_unchecked
, but with support
for overwriting the sol_invoke_signed
syscall stub.
§Safety
This function is incorrectly missing an unsafe
declaration.
If any of the writable accounts passed to the callee contain data that is borrowed within the calling program, and that data is written to by the callee, then Rust’s aliasing rules will be violated and cause undefined behavior.