From 8c4995b22bb357c5c14b827259c02b18af6a68c5 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Wed, 4 Nov 2020 14:25:49 -0800 Subject: [PATCH] Improve invoke_signed() docs --- sdk/program/src/program.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sdk/program/src/program.rs b/sdk/program/src/program.rs index af6b5467fd..91c1956c87 100644 --- a/sdk/program/src/program.rs +++ b/sdk/program/src/program.rs @@ -1,11 +1,17 @@ use crate::{account_info::AccountInfo, entrypoint::ProgramResult, instruction::Instruction}; /// Invoke a cross-program instruction +/// +/// Note that the program id of the instruction being issued must also be included in +/// `account_infos`. pub fn invoke(instruction: &Instruction, account_infos: &[AccountInfo]) -> ProgramResult { invoke_signed(instruction, account_infos, &[]) } /// Invoke a cross-program instruction with program signatures +/// +/// Note that the program id of the instruction being issued must also be included in +/// `account_infos`. pub fn invoke_signed( instruction: &Instruction, account_infos: &[AccountInfo],