solana_sdk::program

Function invoke_signed_unchecked

Source
pub fn invoke_signed_unchecked(
    instruction: &Instruction,
    account_infos: &[AccountInfo<'_>],
    signers_seeds: &[&[&[u8]]],
) -> Result<(), ProgramError>
Expand description

Like solana_cpi::invoke_signed_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.