Add test for program_ids passed in metas (#8618)

This commit is contained in:
Jack May
2020-03-04 11:13:33 -08:00
committed by GitHub
parent 561808cf90
commit 408d5da50f
2 changed files with 44 additions and 0 deletions

View File

@ -338,6 +338,7 @@ impl MessageProcessor {
// TODO: panics on an index out of bounds if an executable
// account is also included as a regular account for an instruction, because the
// executable account is not passed in as part of the accounts slice
// See test: bank::tests::test_transaction_with_program_ids_passed_to_programs
let program_accounts: Vec<_> = instruction
.accounts
.iter()