Skip to content

Commit

Permalink
solana: Box rate limit account
Browse files Browse the repository at this point in the history
  • Loading branch information
nvsriram authored and bruce-riley committed Sep 13, 2024
1 parent 02160b8 commit 75c30d2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ pub struct Initialize<'info> {
seeds = [OutboxRateLimit::SEED_PREFIX],
bump,
)]
pub rate_limit: Account<'info, OutboxRateLimit>,
pub rate_limit: Box<Account<'info, OutboxRateLimit>>,

#[account(
seeds = [crate::TOKEN_AUTHORITY_SEED],
Expand All @@ -64,7 +64,7 @@ pub struct Initialize<'info> {
///
/// TODO: Using `UncheckedAccount` here leads to "Access violation in stack frame ...".
/// Could refactor code to use `Box<_>` to reduce stack size.
pub token_authority: AccountInfo<'info>,
pub token_authority: UncheckedAccount<'info>,

#[account(
init_if_needed,
Expand Down

0 comments on commit 75c30d2

Please sign in to comment.