Share RO and Executable accounts within invocations (#15799)

This commit is contained in:
Jack May
2021-03-10 23:04:00 -08:00
committed by GitHub
parent ac8ccee6b8
commit 478518308d
8 changed files with 145 additions and 85 deletions

View File

@ -247,7 +247,10 @@ impl program_stubs::SyscallStubs for SyscallStubs {
rent_epoch: ai.rent_epoch,
}
}
let executables = vec![(program_id, RefCell::new(ai_to_a(program_account_info)))];
let executables = vec![(
program_id,
Rc::new(RefCell::new(ai_to_a(program_account_info))),
)];
// Convert AccountInfos into Accounts
let mut accounts = vec![];