Function solana_program::sysvar::instructions::load_current_index

source ยท
pub fn load_current_index(data: &[u8]) -> u16
๐Ÿ‘ŽDeprecated since 1.8.0: Unsafe because the sysvar accounts address is not checked, please use load_current_index_checked instead
Expand description

Load the current Instructionโ€™s index in the currently executing Transaction.

data is the instructions sysvar account data.