Skip to content

Commit

Permalink
fix payer
Browse files Browse the repository at this point in the history
  • Loading branch information
bryzettler committed Jan 4, 2025
1 parent 67886fc commit 084dfdd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions programs/voter-stake-registry/src/instructions/withdraw_v0.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pub struct WithdrawArgsV0 {
#[instruction(args: WithdrawArgsV0)]
pub struct WithdrawV0<'info> {
#[account(mut)]
pub payer: Signer<'info>,
pub position_authority: Signer<'info>,
pub registrar: Box<Account<'info, Registrar>>,

#[account(
Expand All @@ -32,13 +32,12 @@ pub struct WithdrawV0<'info> {
pub mint: Box<Account<'info, Mint>>,
#[account(
init_if_needed,
payer = payer,
payer = position_authority,
token::mint = mint,
token::authority = position_authority,
constraint = position_token_account.amount > 0
)]
pub position_token_account: Box<Account<'info, TokenAccount>>,
pub position_authority: Signer<'info>,

#[account(
mut,
Expand Down

0 comments on commit 084dfdd

Please sign in to comment.