pub fn load_instruction_at(
index: usize,
data: &[u8],
) -> Result<Instruction, SanitizeError>
Available on crate feature
dev-context-only-utils
only.Expand description
Load an Instruction
in the currently executing Transaction
at the
specified index.
data
is the instructions sysvar account data.
Unsafe because the sysvar accounts address is not checked; only used internally after such a check.