From 75c30d23b14141853e195cd81cd45d2a1c4d6d61 Mon Sep 17 00:00:00 2001 From: nvsriram Date: Tue, 3 Sep 2024 13:49:24 -0400 Subject: [PATCH] solana: Box rate limit account --- .../src/instructions/initialize.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/solana/programs/example-native-token-transfers/src/instructions/initialize.rs b/solana/programs/example-native-token-transfers/src/instructions/initialize.rs index bcc37de0d..ec655f27b 100644 --- a/solana/programs/example-native-token-transfers/src/instructions/initialize.rs +++ b/solana/programs/example-native-token-transfers/src/instructions/initialize.rs @@ -52,7 +52,7 @@ pub struct Initialize<'info> { seeds = [OutboxRateLimit::SEED_PREFIX], bump, )] - pub rate_limit: Account<'info, OutboxRateLimit>, + pub rate_limit: Box>, #[account( seeds = [crate::TOKEN_AUTHORITY_SEED], @@ -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,