This commit is contained in:
Jack May
2020-05-08 12:51:27 -07:00
parent 97e17f9b32
commit af84dff9ef
2 changed files with 11 additions and 2 deletions

View File

@ -697,8 +697,7 @@ fn call<'a>(
let callee_program_id = message.account_keys[callee_program_id_index];
let caller_program_id = invoke_context
.get_caller()
.map_err(|err| SyscallError::InstructionError(err))?
.into();
.map_err(SyscallError::InstructionError)?;
let (accounts, refs) = syscall.translate_accounts(
&message,
account_infos_addr,