Skip to content

Commit 835a303

Browse files
committed
Inline invoke
1 parent ece4694 commit 835a303

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sdk/pinocchio/src/program.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ impl<'a> From<&Instruction<'a, '_, '_, '_>> for CInstruction<'a> {
5454
///
5555
/// The accounts on the `account_infos` slice must be in the same order as the
5656
/// `accounts` field of the `instruction`.
57+
#[inline(always)]
5758
pub fn invoke<const ACCOUNTS: usize>(
5859
instruction: &Instruction,
5960
account_infos: &[&AccountInfo; ACCOUNTS],
@@ -126,6 +127,7 @@ pub fn invoke_signed<const ACCOUNTS: usize>(
126127
///
127128
/// The accounts on the `account_infos` slice must be in the same order as the
128129
/// `accounts` field of the `instruction`.
130+
#[inline(always)]
129131
pub unsafe fn invoke_unchecked(instruction: &Instruction, accounts: &[Account]) {
130132
invoke_signed_unchecked(instruction, accounts, &[])
131133
}

0 commit comments

Comments
 (0)