add reallocs set (#29)

This commit is contained in:
Matthew Callens 2022-07-05 13:34:45 -04:00 committed by GitHub
parent aa0d8adc94
commit fd78344ab5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -535,12 +535,14 @@ mod registry {
let mut remaining_accounts: &[AccountInfo] = ctx.remaining_accounts;
let cpi_program = ctx.accounts.lockup_program.clone();
let mut bumps = std::collections::BTreeMap::new();
let mut reallocs = std::collections::BTreeSet::new();
let cpi_accounts = {
let accs = CreateVesting::try_accounts(
ctx.accounts.lockup_program.key,
&mut remaining_accounts,
&[],
&mut bumps,
&mut reallocs,
)?;
lockup::cpi::accounts::CreateVesting {
vesting: accs.vesting.to_account_info(),