From 8314ab4508f6920773db152b97230f90afa3ab3c Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Thu, 5 Nov 2020 01:07:24 +0000 Subject: [PATCH] Improve invoke_signed() docs (#13405) (cherry picked from commit 8c4995b22bb357c5c14b827259c02b18af6a68c5) Co-authored-by: Michael Vines --- 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],