Allow the same account to be passed multiple times to a single instruction (#7795)
This commit is contained in:
@@ -72,7 +72,7 @@ pub fn invoke_entrypoint(
|
||||
) -> Result<(), InstructionError> {
|
||||
// dispatch it
|
||||
let (names, params) = keyed_accounts.split_at_mut(1);
|
||||
let name_vec = &names[0].account.data;
|
||||
let name_vec = &names[0].try_account_ref()?.data;
|
||||
if let Some(entrypoint) = symbol_cache.read().unwrap().get(name_vec) {
|
||||
unsafe {
|
||||
return entrypoint(program_id, params, instruction_data);
|
||||
|
Reference in New Issue
Block a user