We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02160b8 commit 75c30d2Copy full SHA for 75c30d2
solana/programs/example-native-token-transfers/src/instructions/initialize.rs
@@ -52,7 +52,7 @@ pub struct Initialize<'info> {
52
seeds = [OutboxRateLimit::SEED_PREFIX],
53
bump,
54
)]
55
- pub rate_limit: Account<'info, OutboxRateLimit>,
+ pub rate_limit: Box<Account<'info, OutboxRateLimit>>,
56
57
#[account(
58
seeds = [crate::TOKEN_AUTHORITY_SEED],
@@ -64,7 +64,7 @@ pub struct Initialize<'info> {
64
///
65
/// TODO: Using `UncheckedAccount` here leads to "Access violation in stack frame ...".
66
/// Could refactor code to use `Box<_>` to reduce stack size.
67
- pub token_authority: AccountInfo<'info>,
+ pub token_authority: UncheckedAccount<'info>,
68
69
70
init_if_needed,
0 commit comments