Skip to content

Commit 2e0a1f3

Browse files
committed
only admin can call clawback_now
1 parent a4afd5b commit 2e0a1f3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

programs/merkle-distributor/src/instructions/clawback_now.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,8 @@ pub struct ClawbackNow<'info> {
2828
#[account(mut, address = distributor.clawback_receiver)]
2929
pub to: Account<'info, TokenAccount>,
3030

31-
/// Claimant account
32-
/// Anyone can claw back the funds
33-
pub claimant: Signer<'info>,
31+
#[account(mut, address = distributor.admin @ ErrorCode::Unauthorized)]
32+
pub admin: Signer<'info>,
3433

3534
/// The [System] program.
3635
pub system_program: Program<'info, System>,

0 commit comments

Comments
 (0)