Skip to content

Commit

Permalink
added smart pointers to make the tests pass
Browse files Browse the repository at this point in the history
  • Loading branch information
HermanCeaser committed Jan 28, 2025
1 parent f0fb0ef commit 776a440
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions escrow/programs/escrow/src/instructions/take.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ pub struct Take<'info> {
associated_token::authority=taker,
associated_token::token_program = token_program
)]
pub taker_mint_a_ata: InterfaceAccount<'info, TokenAccount>,
pub taker_mint_a_ata: Box<InterfaceAccount<'info, TokenAccount>>,

#[account(
mut,
associated_token::mint = mint_b,
associated_token::authority = taker,
associated_token::token_program = token_program
)]
pub taker_mint_b_ata: InterfaceAccount<'info, TokenAccount>,
pub taker_mint_b_ata: Box<InterfaceAccount<'info, TokenAccount>>,

#[account(
init_if_needed,
Expand All @@ -46,7 +46,7 @@ pub struct Take<'info> {
associated_token::authority=maker,
associated_token::token_program = token_program
)]
pub maker_mint_b_ata: InterfaceAccount<'info, TokenAccount>,
pub maker_mint_b_ata: Box<InterfaceAccount<'info, TokenAccount>>,

#[account(
mut,
Expand All @@ -65,7 +65,7 @@ pub struct Take<'info> {
associated_token::authority = offer,
associated_token::token_program = token_program
)]
pub vault: InterfaceAccount<'info, TokenAccount>,
pub vault: Box<InterfaceAccount<'info, TokenAccount>>,


pub system_program: Program<'info, System>,
Expand Down

0 comments on commit 776a440

Please sign in to comment.