Adds InvokeContext::get_instruction_keyed_accounts() to skip first_instruction_account keyed_accounts in CPI.
This commit is contained in:
Alexander Meißner
2021-12-01 14:57:59 +01:00
committed by GitHub
parent 1f13fd64bd
commit 3da914330d
2 changed files with 15 additions and 2 deletions

View File

@ -2003,7 +2003,7 @@ where
let demote_program_write_locks =
invoke_context.is_feature_active(&demote_program_write_locks::id());
let keyed_accounts = invoke_context
.get_keyed_accounts()
.get_instruction_keyed_accounts()
.map_err(SyscallError::InstructionError)?;
let mut account_indices = Vec::with_capacity(message.account_keys.len());
let mut accounts = Vec::with_capacity(message.account_keys.len());