Skip to content

Commit ffaeca1

Browse files
committed
solana: Box rate limit account
1 parent 5faa2ff commit ffaeca1

File tree

1 file changed

+2
-2
lines changed
  • solana/programs/example-native-token-transfers/src/instructions

1 file changed

+2
-2
lines changed

solana/programs/example-native-token-transfers/src/instructions/initialize.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ pub struct Initialize<'info> {
5252
seeds = [OutboxRateLimit::SEED_PREFIX],
5353
bump,
5454
)]
55-
pub rate_limit: Account<'info, OutboxRateLimit>,
55+
pub rate_limit: Box<Account<'info, OutboxRateLimit>>,
5656

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

6969
#[account(
7070
init_if_needed,

0 commit comments

Comments
 (0)