Update lib.rs (#6)
`destination` should be declared as `mut` in order to receiver lamports from `account`.
This commit is contained in:
parent
609e5ade22
commit
d0698880fd
|
@ -15,6 +15,7 @@ pub mod closing_accounts_recommended {
|
|||
pub struct Close<'info> {
|
||||
#[account(mut, close = destination)]
|
||||
account: Account<'info, Data>,
|
||||
#[account(mut)]
|
||||
destination: AccountInfo<'info>,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue