Don't use caller passed executable account (#14276) (#14501)

This commit is contained in:
Jack May
2021-01-08 17:21:09 -08:00
committed by GitHub
parent 709ec20d7c
commit d815fe37c8
4 changed files with 77 additions and 100 deletions

View File

@@ -377,7 +377,11 @@ fn process_instruction(
}
TEST_EMPTY_ACCOUNTS_SLICE => {
msg!("Empty accounts slice");
let instruction = create_instruction(*accounts[INVOKED_PROGRAM_INDEX].key, &[], vec![]);
let instruction = create_instruction(
*accounts[INVOKED_PROGRAM_INDEX].key,
&[(accounts[INVOKED_ARGUMENT_INDEX].key, false, false)],
vec![],
);
invoke(&instruction, &[])?;
}
TEST_CAP_SEEDS => {