Module anchor_lang::accounts::boxed
source · [−]Expand description
Box
Sometimes accounts are too large for the stack, leading to stack violations.
Boxing the account can help.
Example
ⓘ
#[derive(Accounts)]
pub struct Example {
pub my_acc: Box<Account<'info, MyData>>
}