Add test to enforce that program id account info for CPI is optional (#22069) (#22103)

* Update tests to demonstrate that program id account info for CPI is optional

* Clean up comments that say that program id account info is required

(cherry picked from commit ec7536faf6)

Co-authored-by: Justin Starry <justin@solana.com>
This commit is contained in:
mergify[bot]
2022-01-04 21:47:48 +00:00
committed by GitHub
parent 9764d4349b
commit 09dbf069e8
7 changed files with 13 additions and 29 deletions

View File

@ -54,7 +54,7 @@ fn process_instruction(
&[instruction_data[0], instruction_data[1], 1],
vec![AccountMeta::new_readonly(instructions::id(), false)],
),
accounts,
&[instructions_account.clone()],
)?;
}