Skip to content

Commit

Permalink
solana: fix stack access violation
Browse files Browse the repository at this point in the history
  • Loading branch information
a5-pickle committed Oct 31, 2024
1 parent c80c7da commit fd73007
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions solana/programs/token-router/src/composite/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ pub struct CheckedCustodian<'info> {
seeds = [Custodian::SEED_PREFIX],
bump = Custodian::BUMP,
)]
pub custodian: Account<'info, Custodian>,
pub custodian: Box<Account<'info, Custodian>>,
}

impl<'info> Deref for CheckedCustodian<'info> {
Expand Down Expand Up @@ -128,7 +128,7 @@ pub struct OwnerOnlyMut<'info> {
seeds = [Custodian::SEED_PREFIX],
bump = Custodian::BUMP,
)]
pub custodian: Account<'info, Custodian>,
pub custodian: Box<Account<'info, Custodian>>,
}

#[derive(Accounts)]
Expand Down Expand Up @@ -161,7 +161,7 @@ pub struct AdminMut<'info> {
seeds = [Custodian::SEED_PREFIX],
bump = Custodian::BUMP,
)]
pub custodian: Account<'info, Custodian>,
pub custodian: Box<Account<'info, Custodian>>,
}

/// Registered router endpoint representing a foreign Token Router. This account may have a CCTP
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pub struct RedeemFastFill<'info> {
bump = fast_fill.seeds.bump,
seeds::program = matching_engine_program,
)]
fast_fill: Account<'info, FastFill>,
fast_fill: Box<Account<'info, FastFill>>,

#[account(
init_if_needed,
Expand All @@ -37,7 +37,7 @@ pub struct RedeemFastFill<'info> {
],
bump,
)]
prepared_fill: Account<'info, PreparedFill>,
prepared_fill: Box<Account<'info, PreparedFill>>,

/// Mint recipient token account, which is encoded as the mint recipient in the CCTP message.
/// The CCTP Token Messenger Minter program will transfer the amount encoded in the CCTP message
Expand Down

0 comments on commit fd73007

Please sign in to comment.