Build fixes
This commit is contained in:
parent
8921ac0441
commit
cea0f9441a
|
@ -141,7 +141,7 @@ fn adjust_for_post_cpi_token_amounts(
|
|||
let token_index = group
|
||||
.tokens
|
||||
.index_for_mint(&maybe_mango_vault_token_account.mint)?;
|
||||
let mut position = *account.indexed_positions.get_mut_or_create(token_index)?;
|
||||
let mut position = *account.indexed_positions.get_mut_or_create(token_index)?.0;
|
||||
let bank_loader = AccountLoader::<'_, TokenBank>::try_from(bank_ai)?;
|
||||
let mut bank = bank_loader.load_mut()?;
|
||||
bank.withdraw(&mut position, still_loaned_amount);
|
||||
|
|
|
@ -13,7 +13,7 @@ mod program_test;
|
|||
// that they work in principle. It should be split up / renamed.
|
||||
#[tokio::test]
|
||||
async fn test_group_address_lookup_tables() -> Result<()> {
|
||||
let context = TestContext::new().await;
|
||||
let context = TestContext::new(None, None, None, None).await;
|
||||
let solana = &context.solana.clone();
|
||||
|
||||
let admin = &Keypair::new();
|
||||
|
|
|
@ -12,7 +12,7 @@ mod program_test;
|
|||
// Check opening and closing positions
|
||||
#[tokio::test]
|
||||
async fn test_position_lifetime() -> Result<()> {
|
||||
let context = TestContext::new().await;
|
||||
let context = TestContext::new(None, None, None, None).await;
|
||||
let solana = &context.solana.clone();
|
||||
|
||||
let admin = &Keypair::new();
|
||||
|
|
Loading…
Reference in New Issue