Allow passing of program_id to programs (bp #8639) (#8670)

automerge
This commit is contained in:
mergify[bot]
2020-03-09 12:36:34 -07:00
committed by GitHub
parent f511296ee8
commit 889b06e1d4
4 changed files with 61 additions and 14 deletions

View File

@@ -336,9 +336,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
let program_accounts: Vec<_> = instruction
.accounts
.iter()