Skip to content

Commit fd73007

Browse files
committed
solana: fix stack access violation
1 parent c80c7da commit fd73007

File tree

2 files changed

+5
-5
lines changed
  • solana/programs/token-router/src

2 files changed

+5
-5
lines changed

solana/programs/token-router/src/composite/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ pub struct CheckedCustodian<'info> {
8787
seeds = [Custodian::SEED_PREFIX],
8888
bump = Custodian::BUMP,
8989
)]
90-
pub custodian: Account<'info, Custodian>,
90+
pub custodian: Box<Account<'info, Custodian>>,
9191
}
9292

9393
impl<'info> Deref for CheckedCustodian<'info> {
@@ -128,7 +128,7 @@ pub struct OwnerOnlyMut<'info> {
128128
seeds = [Custodian::SEED_PREFIX],
129129
bump = Custodian::BUMP,
130130
)]
131-
pub custodian: Account<'info, Custodian>,
131+
pub custodian: Box<Account<'info, Custodian>>,
132132
}
133133

134134
#[derive(Accounts)]
@@ -161,7 +161,7 @@ pub struct AdminMut<'info> {
161161
seeds = [Custodian::SEED_PREFIX],
162162
bump = Custodian::BUMP,
163163
)]
164-
pub custodian: Account<'info, Custodian>,
164+
pub custodian: Box<Account<'info, Custodian>>,
165165
}
166166

167167
/// Registered router endpoint representing a foreign Token Router. This account may have a CCTP

solana/programs/token-router/src/processor/redeem_fill/fast.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ pub struct RedeemFastFill<'info> {
2525
bump = fast_fill.seeds.bump,
2626
seeds::program = matching_engine_program,
2727
)]
28-
fast_fill: Account<'info, FastFill>,
28+
fast_fill: Box<Account<'info, FastFill>>,
2929

3030
#[account(
3131
init_if_needed,
@@ -37,7 +37,7 @@ pub struct RedeemFastFill<'info> {
3737
],
3838
bump,
3939
)]
40-
prepared_fill: Account<'info, PreparedFill>,
40+
prepared_fill: Box<Account<'info, PreparedFill>>,
4141

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

0 commit comments

Comments
 (0)