Allow passing of program_ids to programs (#8639)

This commit is contained in:
Jack May
2020-03-05 10:57:12 -08:00
committed by GitHub
parent 0e3a8fa6d9
commit 97c5fb8141
4 changed files with 19 additions and 16 deletions

View File

@ -332,10 +332,6 @@ impl MessageProcessor {
.ok_or(TransactionError::InvalidAccountIndex)?;
let executable_accounts = &loaders[executable_index];
// 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()